shithub: leaf

Download patch

ref: 1c55817d67582ffc117eb85273463a40477dd22f
parent: a5ffd431f2dd99a86cb3a73a57c9af2204aa90a4
author: Matthew Wang <mjw7@princeton.edu>
date: Wed Sep 2 07:41:24 EDT 2020

fix buf indexing error in talkbox objects

--- a/leaf/Src/leaf-effects.c
+++ b/leaf/Src/leaf-effects.c
@@ -288,7 +288,7 @@
         {
 //            for(i=0; i<n; i++)
 //            {
-                buf[i] = 0.0f;
+                buf[0] = 0.0f;
                 return;
 //            }
         }
@@ -618,7 +618,7 @@
         {
 //            for(i=0; i<n; i++)
 //            {
-                buf[i] = 0.0f;
+                buf[0] = 0.0f;
                 return;
 //            }
         }