From 7190839f6a06afae572b0a60295f0b2c854cb9bd Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Thu, 19 Dec 2013 02:13:37 +0000 Subject: [PATCH] http://bugzilla.audacityteam.org/show_bug.cgi?id=689, " Wahwah effect clips at 0 dB " --- src/effects/Wahwah.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/effects/Wahwah.cpp b/src/effects/Wahwah.cpp index 98365c9f1..b91f00013 100644 --- a/src/effects/Wahwah.cpp +++ b/src/effects/Wahwah.cpp @@ -156,10 +156,11 @@ bool EffectWahwah::ProcessSimpleMono(float *buffer, sampleCount len) yn1 = out; // 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=689. + //if (out < -1.0) + // out = float(-1.0); + //else if (out > 1.0) + // out = float(1.0); buffer[i] = (float) out; }