shithub: leaf

Download patch

ref: 0de3b3b18c831f45b037ae67a3742ebd2c9e9d41
parent: 0f717b6a8ab9994ae7209077572e55b67d5685a1
author: Matthew Wang <mjw7@princeton.edu>
date: Thu Jan 23 11:33:22 EST 2020

don't clear Buffer on init

--- a/LEAF/Src/leaf-sampling.c
+++ b/LEAF/Src/leaf-sampling.c
@@ -35,8 +35,6 @@
     s->active = 0;
     s->idx = 0;
     s->mode = RecordOneShot;
-    
-    tBuffer_clear(sb);
 }
 
 void  tBuffer_free (tBuffer* const sb)
@@ -58,8 +56,6 @@
     s->recordedLength = 0;
     s->idx = 0;
     s->mode = RecordOneShot;
-    
-    tBuffer_clear(sb);
 }
 
 void  tBuffer_freeFromPool (tBuffer* const sb, tMempool* const mp)