mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-06 16:50:12 +01:00
http://bugzilla.audacityteam.org/show_bug.cgi?id=689, " Wahwah effect clips at 0 dB "
This commit is contained in:
@@ -156,10 +156,11 @@ bool EffectWahwah::ProcessSimpleMono(float *buffer, sampleCount len)
|
|||||||
yn1 = out;
|
yn1 = out;
|
||||||
|
|
||||||
// Prevents clipping
|
// Prevents clipping
|
||||||
if (out < -1.0)
|
// Commented out, per http://bugzilla.audacityteam.org/show_bug.cgi?id=689.
|
||||||
out = float(-1.0);
|
//if (out < -1.0)
|
||||||
else if (out > 1.0)
|
// out = float(-1.0);
|
||||||
out = float(1.0);
|
//else if (out > 1.0)
|
||||||
|
// out = float(1.0);
|
||||||
|
|
||||||
buffer[i] = (float) out;
|
buffer[i] = (float) out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user