[SCM] calf/master: + Organ: fix another instance of off-by-one

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


The following commit has been merged in the master branch:
commit aaff681d3b54085234faaa96700eba988e2fc4b0
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Fri May 9 22:19:49 2008 +0000

    + Organ: fix another instance of off-by-one
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@172 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/organ.cpp b/src/organ.cpp
index 13c11a9..62adf82 100644
--- a/src/organ.cpp
+++ b/src/organ.cpp
@@ -743,7 +743,7 @@ void organ_voice::render_block() {
         filterR[i].copy_coeffs(filterL[i]);
     }
     float amp_pre[ampctl_count - 1], amp_post[ampctl_count - 1];
-    for (int i = 0; i < ampctl_count; i++)
+    for (int i = 0; i < ampctl_count - 1; i++)
     {
         amp_pre[i] = 1.f;
         amp_post[i] = 1.f;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list