projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22df684
)
src/synth/sampler.c: fix _do_multi
author
Paul Brossier
<piem@piem.org>
Sat, 23 Mar 2013 00:11:35 +0000
(19:11 -0500)
committer
Paul Brossier
<piem@piem.org>
Sat, 23 Mar 2013 00:11:35 +0000
(19:11 -0500)
src/synth/sampler.c
patch
|
blob
|
history
diff --git
a/src/synth/sampler.c
b/src/synth/sampler.c
index bbacf46f5aa5888c9a2f45c6e100f08df93e8969..e6ee809a798cba267bdde7ab184ef67264fa2559 100644
(file)
--- a/
src/synth/sampler.c
+++ b/
src/synth/sampler.c
@@
-82,10
+82,10
@@
void aubio_sampler_do_multi ( aubio_sampler_t * o, fmat_t * input, fmat_t * outp
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++) {