From: Paul Brossier Date: Mon, 16 Jul 2012 22:52:00 +0000 (-0600) Subject: src/io/source_sndfile.c: use linear resampling to make sure all output samples are... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6fd8d7e757c8241eae5d04596f0e36ce892267be;p=aubio.git src/io/source_sndfile.c: use linear resampling to make sure all output samples are created on first read --- 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 ) {