From f1b925e4562c3abc3d4674319791aa605852eacf Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 16 Oct 2009 04:26:05 +0200 Subject: [PATCH] src/onset/peakpick.{c,h}: setters to return uint --- src/onset/peakpick.c | 8 ++++---- src/onset/peakpick.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/onset/peakpick.c b/src/onset/peakpick.c index b93918df..029f7d2f 100644 --- a/src/onset/peakpick.c +++ b/src/onset/peakpick.c @@ -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) { diff --git a/src/onset/peakpick.h b/src/onset/peakpick.h index 4d193f45..4c15eaf3 100644 --- a/src/onset/peakpick.h +++ b/src/onset/peakpick.h @@ -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); -- 2.26.2