ref: 6e765ed8db687f82716d65bee04f7c44938f1499
parent: 857f8871b11f72155f93a8da944b553fd2cf4d98
parent: 985d5c4d2d9004413b60fccf3f50fc508d66b2d9
author: Paul Brossier <piem@piem.org>
date: Mon Apr 25 13:50:11 EDT 2016
Merge branch 'develop' of github.com:aubio/aubio into develop
--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -140,6 +140,7 @@
AUBIO_WRN("source_sndfile: upsampling %s from %d to %d\n", s->path,
s->input_samplerate, s->samplerate);
}
+ s->duration = (uint_t)FLOOR(s->duration * s->ratio);
}
#else
if (s->ratio != 1) {