mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-24 16:01:16 +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;
|
out = (m * drywet + in * (255 - drywet)) / 255;
|
||||||
|
|
||||||
// Prevents clipping
|
// Prevents clipping
|
||||||
if (out < -1.0)
|
// Commented out, per http://bugzilla.audacityteam.org/show_bug.cgi?id=690.
|
||||||
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] = out;
|
buffer[i] = out;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user