[SCM] calf/master: + Compressor: Fixed buggy RMS conditional.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:41 UTC 2013


The following commit has been merged in the master branch:
commit 2f5443f2c297a6fa1fce1b2cf263e2d43c9b81de
Author: Thor Harald Johansen <thj at thj.no>
Date:   Thu Nov 27 22:07:54 2008 +0100

    + Compressor: Fixed buggy RMS conditional.

diff --git a/src/calf/modules.h b/src/calf/modules.h
index 4c46d70..16f6e7f 100644
--- a/src/calf/modules.h
+++ b/src/calf/modules.h
@@ -811,7 +811,7 @@ public:
     }
     
     inline float output_gain(float linSlope, bool rms) {
-         if(linSlope > rms ? adjKneeStart : linKneeStart) {
+         if(linSlope > (rms ? adjKneeStart : linKneeStart)) {
             float slope = log(linSlope);
             if(rms) slope *= 0.5f;
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list