[SCM] calf/master: + Organ: avoid underflows in filters

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:11 UTC 2013


The following commit has been merged in the master branch:
commit 1bbe9020117ff9c9c71d660aa554143420c0d2a7
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Wed Apr 30 21:20:09 2008 +0000

    + Organ: avoid underflows in filters
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@166 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/organ.cpp b/src/organ.cpp
index 0276bc3..f9601da 100644
--- a/src/organ.cpp
+++ b/src/organ.cpp
@@ -767,6 +767,10 @@ void organ_voice::render_block() {
         output_buffer[i][1] = a3 * (a0 * output_buffer[i][1] + a1 * filterR[0].process_d1(aux_buffers[1][i][1]) + a2 * filterR[1].process_d1(aux_buffers[2][i][1]));
         a0 += d0, a1 += d1, a2 += d2, a3 += d3;
     }
+    filterL[0].sanitize_d1();
+    filterR[0].sanitize_d1();
+    filterL[1].sanitize_d1();
+    filterR[1].sanitize_d1();
     if (vibrato_mode == lfomode_voice)
         vibrato.process(parameters, output_buffer, BlockSize, sample_rate);
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list