[SCM] calf/master: + Compressor: Fixed clip LED to operate completely in integer domain.

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


The following commit has been merged in the master branch:
commit 908c84aa467e81108cce9b0908457cb775d7edb5
Author: Thor Harald Johansen <thj at thj.no>
Date:   Thu Nov 27 00:55:00 2008 +0100

    + Compressor: Fixed clip LED to operate completely in integer domain.

diff --git a/src/calf/modules.h b/src/calf/modules.h
index 1372cd5..0f57444 100644
--- a/src/calf/modules.h
+++ b/src/calf/modules.h
@@ -749,9 +749,7 @@ public:
 
         peak -= peak * 5.f * numsamples / srate;
         
-        if(clip > 0) {
-            clip -= std::min(clip, numsamples);
-        }
+        clip -= std::min(clip, numsamples);
 
         while(offset < numsamples) {
             float left = ins[0][offset];
@@ -786,7 +784,7 @@ public:
             
             float maxLR = std::max(fabs(outL), fabs(outR));
             
-            if(maxLR > 1.f) clip = (int)(srate * 0.1f); /* blink clip LED for 100 ms */
+            if(maxLR > 1.f) clip = srate >> 3; /* blink clip LED for 125 ms */
             
             if(maxLR > peak) {
                 peak = maxLR;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list