ref: c19f9e573b86231d4f8bdaa7cd6b6d2b0cf7c8aa
parent: 2525f817294de2ffbfb1423da0e7bf11ad8c787d
parent: bd1fa89b806943e5e99d6bef368af2c163ca8589
author: Paul Brossier <piem@piem.org>
date: Fri Mar 22 15:12:13 EDT 2013
Merge /Users/piem/projects/aubio/aubio into device
--- 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++) {