Any idea how to normalize a wav-file so the volume level become maximal by using c++?
What’s the formula? I have googled whole afternoon but found no answer. Any help pls!
Any idea how to normalize a wav-file so the volume level become maximal by
Share
Suppose NewMaxVal is the new maximum value in the sound stream you want. The simplest solution is to find the current maximum value (CurMaxVal) in the sound stream and then multiply all values by NewMaxVal/CurMaxVal. A more advanced form is to make use of a dynamic compressor.