From 28c162c125bc61fd307185a26ead58192e3046ea Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 15 Oct 2009 21:09:38 +0200 Subject: [PATCH] src/utils/scale.{c,h}: set method to return int --- src/utils/scale.c | 3 ++- src/utils/scale.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/scale.c b/src/utils/scale.c index 58655fce..177ce9db 100644 --- a/src/utils/scale.c +++ b/src/utils/scale.c @@ -47,7 +47,7 @@ void del_aubio_scale(aubio_scale_t *s) { AUBIO_FREE(s); } -void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, +uint_t aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig) { smpl_t inputrange = ihig - ilow; smpl_t outputrange= ohig - olow; @@ -63,6 +63,7 @@ void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, inputrange = inputrange * -1.0f; } } + return AUBIO_OK; } void aubio_scale_do (aubio_scale_t *s, fvec_t *input) diff --git a/src/utils/scale.h b/src/utils/scale.h index 123c248c..e18957ef 100644 --- a/src/utils/scale.h +++ b/src/utils/scale.h @@ -68,7 +68,7 @@ void aubio_scale_do(aubio_scale_t *s, fvec_t * input); \param ihig higher value of output function */ -void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, +uint_t aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig); #ifdef __cplusplus -- 2.26.2