src/onset/peakpick.{c,h}: setters to return uint
authorPaul Brossier <piem@piem.org>
Fri, 16 Oct 2009 02:26:05 +0000 (04:26 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 16 Oct 2009 02:26:05 +0000 (04:26 +0200)
src/onset/peakpick.c
src/onset/peakpick.h

index b93918df66524c72b2f08200cb4306f7a92f9d38..029f7d2f1731b8fcdf57b08a9098a30dc2ab783d 100644 (file)
@@ -126,18 +126,18 @@ smpl_t aubio_peakpicker_get_thresholded_input(aubio_peakpicker_t * p)
 }
 
 /** function added by Miguel Ramirez to return the onset detection amplitude in peakval */
-void aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold) {
+uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold) {
        p->threshold = threshold;
-       return;
+       return AUBIO_OK;
 }
 
 smpl_t aubio_peakpicker_get_threshold(aubio_peakpicker_t * p) {
        return p->threshold;
 }
 
-void aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn) {
+uint_t aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn) {
        p->thresholdfn = thresholdfn;
-       return;
+       return AUBIO_OK;
 }
 
 aubio_thresholdfn_t aubio_peakpicker_get_thresholdfn(aubio_peakpicker_t * p) {
index 4d193f45316909318053c522de82777660c6d5e5..4c15eaf3df285a6aa59b50e024589606fa85068c 100644 (file)
@@ -47,11 +47,11 @@ smpl_t aubio_peakpicker_get_thresholded_input(aubio_peakpicker_t * p);
 void del_aubio_peakpicker(aubio_peakpicker_t * p);
 
 /** set peak picking threshold */
-void aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold);
+uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold);
 /** get peak picking threshold */
 smpl_t aubio_peakpicker_get_threshold(aubio_peakpicker_t * p);
 /** set peak picker thresholding function */
-void aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn);
+uint_t aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn);
 /** get peak picker thresholding function */
 aubio_thresholdfn_t aubio_peakpicker_get_thresholdfn(aubio_peakpicker_t * p);