1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 15:50:05 +02:00
This commit is contained in:
v.audacity 2013-12-19 02:25:44 +00:00
parent 7190839f6a
commit bc445fb4fc

View File

@ -157,10 +157,11 @@ bool EffectPhaser::ProcessSimpleMono(float *buffer, sampleCount len)
out = (m * drywet + in * (255 - drywet)) / 255;
// Prevents clipping
if (out < -1.0)
out = float(-1.0);
else if (out > 1.0)
out = float(1.0);
// Commented out, per http://bugzilla.audacityteam.org/show_bug.cgi?id=690.
//if (out < -1.0)
// out = float(-1.0);
//else if (out > 1.0)
// out = float(1.0);
buffer[i] = out;
}