ref: 0a257a6fad4eabe86054d3bec9182b6e1b2b49fd
parent: 63386360cb9f927c05e7c781723cb12413f7941e
author: Paul Brossier <[email protected]>
date: Fri Oct 16 00:16:42 EDT 2009
src/tempo/tempo.{c,h}: setters to return unsigned ints
--- a/src/tempo/tempo.c
+++ b/src/tempo/tempo.c
@@ -86,15 +86,15 @@
}
}
-void aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence) {
+uint_t aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence) {
o->silence = silence;
- return;
+ return AUBIO_OK;
}
-void aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold) {
+uint_t aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold) {
o->threshold = threshold;
aubio_peakpicker_set_threshold(o->pp, o->threshold);
- return;
+ return AUBIO_OK;
}
/* Allocate memory for an tempo detection */
--- a/src/tempo/tempo.h
+++ b/src/tempo/tempo.h
@@ -44,10 +44,10 @@
void aubio_tempo_do (aubio_tempo_t *o, fvec_t * input, fvec_t * tempo);
/** set tempo detection silence threshold */
-void aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
+uint_t aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
/** set tempo detection peak picking threshold */
-void aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold);
+uint_t aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold);
/** get current tempo