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:
parent
5477fd6e23
commit
f67170df5f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user