mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-23 15:50:05 +02:00
http://bugzilla.audacityteam.org/show_bug.cgi?id=690, "Phaser effect clips at 0 dB "
This commit is contained in:
parent
7190839f6a
commit
bc445fb4fc
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user