From 757e2558fde3c4f94c1dca49c7b8017b41079751 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 28 Nov 2016 14:59:20 +0100 Subject: [PATCH] src/synth/sampler.c: let sampler_read call memset(0) as needed --- src/synth/sampler.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/synth/sampler.c b/src/synth/sampler.c index 69b68c18..4dccf1c0 100644 --- a/src/synth/sampler.c +++ b/src/synth/sampler.c @@ -712,12 +712,6 @@ void aubio_sampler_do ( aubio_sampler_t * o, fvec_t * output, uint_t *read) o->eof = 0; if (o->opened == 1 && o->playing) { aubio_sampler_read(o, output, read); - //AUBIO_WRN("sampler: _read got %d\n", *read); - if (*read < o->blocksize) { - if (*read > 0 && o->loop) { - // TODO pull (hopsize - read) frames - } - } } else { fvec_zeros(output); *read = 0; @@ -729,12 +723,6 @@ void aubio_sampler_do_multi ( aubio_sampler_t * o, fmat_t * output, uint_t *read o->eof = 0; if (o->opened == 1 && o->playing) { //aubio_sampler_read_multi(o, output, read); - if (*read < o->blocksize) { - if (*read > 0) { - // TODO pull (hopsize - read) frames - //memset(... tail , 0) - } - } } else { fmat_zeros(output); *read = 0; -- 2.11.0