aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mdaBeatBox.cpp10
-rw-r--r--src/mdaBeatBox.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/src/mdaBeatBox.cpp b/src/mdaBeatBox.cpp
index 747f5b0..96d89cd 100644
--- a/src/mdaBeatBox.cpp
+++ b/src/mdaBeatBox.cpp
@@ -46,6 +46,16 @@ mdaBeatBox::mdaBeatBox(audioMasterCallback audioMaster) : AudioEffectX(audioMast
sbuflen = 60000;
if(getSampleRate()>49000) { hbuflen*=2; kbuflen*=2; sbuflen*=2; }
+ hbufpos = 0;
+ kbufpos = 0;
+ sbufpos = 0;
+ hfil = 0;
+ sb1 = 0;
+ sb2 = 0;
+ ksb1 = 0;
+ ksb2 = 0;
+ wwx = 0;
+
hbuf = new float[hbuflen];
sbuf = new float[sbuflen]; sbuf2 = new float[sbuflen];
kbuf = new float[kbuflen];
diff --git a/src/mdaBeatBox.h b/src/mdaBeatBox.h
index f14426a..c984d5a 100644
--- a/src/mdaBeatBox.h
+++ b/src/mdaBeatBox.h
@@ -58,7 +58,7 @@ protected:
float fParam10;
float fParam11;
float fParam12;
- float hthr, hfil, sthr, kthr, kfil1, kfil2, mix;
+ float hthr, hfil, sthr, kthr, mix;
float klev, hlev, slev;
float ww, wwx, sb1, sb2, sf1, sf2, sf3;
float kww, kwwx, ksb1, ksb2, ksf1, ksf2;