From bc445fb4fc222e828ca2140a76876e5758140e36 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Thu, 19 Dec 2013 02:25:44 +0000 Subject: [PATCH] http://bugzilla.audacityteam.org/show_bug.cgi?id=690, "Phaser effect clips at 0 dB " --- src/effects/Phaser.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/effects/Phaser.cpp b/src/effects/Phaser.cpp index 38e4014be..1221f3703 100644 --- a/src/effects/Phaser.cpp +++ b/src/effects/Phaser.cpp @@ -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; }