From 6fd8d7e757c8241eae5d04596f0e36ce892267be Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 16 Jul 2012 16:52:00 -0600 Subject: [PATCH] src/io/source_sndfile.c: use linear resampling to make sure all output samples are created on first read --- src/io/source_sndfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/source_sndfile.c b/src/io/source_sndfile.c index 1b012465..7fbe2f22 100644 --- a/src/io/source_sndfile.c +++ b/src/io/source_sndfile.c @@ -104,7 +104,7 @@ aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplera s->input_data = NULL; if (s->ratio != 1) { s->input_data = new_fvec(s->input_hop_size); - s->resampler = new_aubio_resampler(s->ratio, 0); + s->resampler = new_aubio_resampler(s->ratio, 4); if (s->ratio > 1) { // we would need to add a ring buffer for these if ( (uint_t)(s->input_hop_size * s->ratio + .5) != s->hop_size ) { -- 2.26.2