mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +02:00
take an absolute value for correct loudness
This commit is contained in:
parent
bc9deb5db7
commit
1428d2d1de
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ float AudioRingBuffer::averageLoudnessForBoundarySamples(int numSamples) {
|
|||
float averageLoudness = 0;
|
||||
|
||||
for (int i = 0; i < numSamples; ++i) {
|
||||
averageLoudness += _nextOutput[i];
|
||||
averageLoudness += fabsf(_nextOutput[i]);
|
||||
}
|
||||
|
||||
averageLoudness /= numSamples;
|
||||
|
|
Loading…
Reference in a new issue