[SCM] calf/master: * Compressor: Minor changes.

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


The following commit has been merged in the master branch:
commit 210a87b110103d026578271711f9e5d7a5060732
Author: Thor Harald Johansen <thj at thj.no>
Date:   Sun Nov 2 01:47:44 2008 +0100

    * Compressor: Minor changes.

diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index a91285c..4d8f0c8 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -87,14 +87,14 @@ public:
             linslope += (absample - linslope) * (absample > linslope ? attack_coeff : release_coeff);
             float slope = rms ? sqrt(linslope) : linslope;
 
-            if(slope > 0 && (slope > threshold || knee < 1)) {
+            if(slope > 0.f && (slope > threshold || knee < 1.f)) {
                 if(IS_FAKE_INFINITY(ratio)) {
                     gain = threshold;
                 } else {
                     gain = (slope - threshold) / ratio + threshold;
                 }
                 
-                if(knee < 1) {
+                if(knee < 1.f) {
                     float t = std::min(1.f, std::max(0.f, slope / threshold - knee) / (1.f - knee));
                     gain = (gain - slope) * t + slope;
                 }

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list