1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Fix Bug 259 - Meters do not display negative peaks (P2).

This commit is contained in:
v.audacity 2010-11-25 00:17:24 +00:00
parent 5477fd6e23
commit f67170df5f

View File

@ -543,7 +543,7 @@ void Meter::UpdateDisplay(int numChannels, int numFrames, float *sampleData)
for(i=0; i<numFrames; i++) {
for(j=0; j<num; j++) {
msg.peak[j] = floatMax(msg.peak[j], sptr[j]);
msg.peak[j] = floatMax(msg.peak[j], fabs(sptr[j]));
msg.rms[j] += sptr[j]*sptr[j];
// In addition to looking for mNumPeakSamplesToClip peaked