src/io/source_sndfile.c: use linear resampling to make sure all output samples are...
authorPaul Brossier <piem@piem.org>
Mon, 16 Jul 2012 22:52:00 +0000 (16:52 -0600)
committerPaul Brossier <piem@piem.org>
Mon, 16 Jul 2012 22:52:00 +0000 (16:52 -0600)
src/io/source_sndfile.c

index 1b01246..7fbe2f2 100644 (file)
@@ -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 ) {