shithub: leaf

Download patch

ref: e3276feeb7fa0502053337c63041220d01369da3
parent: 2cda77e338e31d657e55450915a4915dbf5f34c2
author: Matthew Wang <mjw7@princeton.edu>
date: Tue Feb 4 12:09:09 EST 2020

remove erroneous alloc in retune_init

--- a/LEAF/Src/leaf-effects.c
+++ b/LEAF/Src/leaf-effects.c
@@ -1025,7 +1025,7 @@
 //============================================================================================================
 static void retune_init(tRetune* const rt, int numVoices, int bufSize, int frameSize)
 {
-    _tRetune* r = *rt = (_tRetune*) leaf_allocAndClear(sizeof(_tRetune));
+    _tRetune* r = *rt;
     
     r->bufSize = bufSize;
     r->frameSize = frameSize;
@@ -1225,7 +1225,7 @@
 // AUTOTUNE
 //============================================================================================================
 
-void autotune_init(tAutotune* const rt, int numVoices, int bufSize, int frameSize)
+static void autotune_init(tAutotune* const rt, int numVoices, int bufSize, int frameSize)
 {
     _tAutotune* r = *rt;