[SCM] calf/master: + Organ, Monosynth: fix osc wavetable initialization bug that caused clicky sound in lv2_jack_host and ingen

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


The following commit has been merged in the master branch:
commit e26885ad2447e3d35cb221bb5f94d14d84036443
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sat Apr 19 13:36:35 2008 +0000

    + Organ, Monosynth: fix osc wavetable initialization bug that caused clicky sound in lv2_jack_host and ingen
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@162 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/calf/osc.h b/src/calf/osc.h
index 2fa7eb6..1948282 100644
--- a/src/calf/osc.h
+++ b/src/calf/osc.h
@@ -117,8 +117,9 @@ struct waveform_family: public map<uint32_t, float *>
         
         uint32_t multiple = 1, base = 1 << (32 - SIZE_BITS);
         while(multiple < SIZE / 2) {
-            float *wf = new float[SIZE];
+            float *wf = new float[SIZE+1];
             bl.make_waveform(wf, (int)((1 << SIZE_BITS) / (1.5 * multiple)));
+            wf[SIZE] = wf[0];
             (*this)[base * multiple] = wf;
             multiple = multiple << 1;
         }

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list