Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Audio Mixing

x4ct0x4ct0 Member Posts: 1
Im working on a program that needs audio mixing. The problem i have is scaling the sound. For example i have 24 active samples at once. If add them all together and divide them by 24 that would not produce a good result if 1 or more samples are very low. Anyone know the best way to scale the sound so that it's always at a good limit.
Would this work ?:
x = sum of samples
y = x / 65536 (i work with unsigned data)
y is now rounded upwards.
final sound is:
x = x / y

What i need is some good formula to scale sound correctly.



  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ___ / / free video tutorials and ebooks about [ Go C++ Delphi Visual Basic .NET Scratch C# Perl MATLAB C Objective-C Java Swift Ruby Python Visual Basic R Assembly JavaScript PL/SQL PHP Apex VBScript Transact-SQL Bash LabVIEW Logo D Scala Awk ABAP Dart SAS Hack Lisp Clojure Scheme Fortran Rust FoxPro Erlang Prolog F# Crystal Ada Julia COBOL ML Alice Lua Kotlin ] ______________

Sign In or Register to comment.