ref: 44a3e5e3add5c818a009b8f3bd1f975b9b1d0d84
parent: a6f9ebfcd50eb432b9f2c8a7f32877e6dbb76d04
author: Paul Brossier <piem@piem.org>
date: Sun May 15 17:52:55 EDT 2016
src/onset/onset.c: fix for "conversion from 'smpl_t' to 'uint_t', possible loss of data"
--- a/src/onset/onset.c
+++ b/src/onset/onset.c
@@ -127,7 +127,7 @@
}
uint_t aubio_onset_set_minioi_s(aubio_onset_t * o, smpl_t minioi) {
- return aubio_onset_set_minioi (o, minioi * o->samplerate);
+ return aubio_onset_set_minioi (o, (uint_t)ROUND(minioi * o->samplerate));
}
smpl_t aubio_onset_get_minioi_s(const aubio_onset_t * o) {