src/tempo/tempo.{c,h}: setters to return unsigned ints
authorPaul Brossier <piem@piem.org>
Fri, 16 Oct 2009 02:16:42 +0000 (04:16 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 16 Oct 2009 02:16:42 +0000 (04:16 +0200)
src/tempo/tempo.c
src/tempo/tempo.h

index 87e4404..a106950 100644 (file)
@@ -86,15 +86,15 @@ void aubio_tempo_do(aubio_tempo_t *o, fvec_t * input, fvec_t * tempo)
   }
 }
 
-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 */
index ed33916..39dcb35 100644 (file)
@@ -44,10 +44,10 @@ aubio_tempo_t * new_aubio_tempo (char_t * mode,
 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