[SCM] calf/master: + Compressor: update graps on bypass state change, lower the update threshold

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:12 UTC 2013


The following commit has been merged in the master branch:
commit 1f67b1cd7d2ab355c66c80a657928caf25d62f58
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Jan 25 20:28:33 2009 +0000

    + Compressor: update graps on bypass state change, lower the update threshold

diff --git a/src/calf/modules.h b/src/calf/modules.h
index 6a1e264..2f63bdf 100644
--- a/src/calf/modules.h
+++ b/src/calf/modules.h
@@ -787,7 +787,7 @@ public:
 class compressor_audio_module: public audio_module<compressor_metadata>, public line_graph_iface {
 private:
     float linSlope, peak, detected, kneeSqrt, kneeStart, linKneeStart, kneeStop, threshold, ratio, knee, makeup, compressedKneeStop, adjKneeStart;
-    float old_threshold, old_ratio, old_knee, old_makeup;
+    float old_threshold, old_ratio, old_knee, old_makeup, old_bypass;
     int last_generation;
     uint32_t clip;
     aweighter awL, awR;
@@ -843,12 +843,13 @@ public:
 	subindex_dot = 0;
 	subindex_gridline = generation ? INT_MAX : 0;
 
-        if (fabs(threshold-old_threshold) + fabs(ratio - old_ratio) + fabs(knee - old_knee) + fabs( makeup - old_makeup) > 0.1f)
+        if (fabs(threshold-old_threshold) + fabs(ratio - old_ratio) + fabs(knee - old_knee) + fabs( makeup - old_makeup) + fabs( *params[param_bypass] - old_bypass) > 0.01f)
         {
 	    old_threshold = threshold;
 	    old_ratio = ratio;
 	    old_knee = knee;
 	    old_makeup = makeup;
+            old_bypass = *params[param_bypass];
             last_generation++;
         }
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list