shithub: aubio

Download patch

ref: eaaba627e15400faa1b83b05a184ea885710d5c3
parent: 22df684f264cd993b14996a344f08041f6f0202e
author: Paul Brossier <piem@piem.org>
date: Fri Mar 22 15:11:35 EDT 2013

src/synth/sampler.c: fix _do_multi

--- a/src/synth/sampler.c
+++ b/src/synth/sampler.c
@@ -82,10 +82,10 @@
     aubio_source_do_multi (o->source, o->source_output_multi, &read);
     for (i = 0; i < output->height; i++) {
       for (j = 0; j < output->length; j++) {
-        output->data[i][j] = o->source_output_multi->data[i][j];
+        output->data[i][j] += o->source_output_multi->data[i][j];
       }
     }
-    if (read == 0) o->playing = 0;
+    if ( read < o->blocksize ) o->playing = 0;
   }
   if (input && input != output) {
     for (i = 0; i < output->height; i++) {