From 06f2d78ae6d20238dc8c89f1b490f0862a49c450 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 8 Oct 2009 12:03:08 +0200 Subject: [PATCH] src/temporal/resample.{c,h}: _do function returns void --- src/temporal/resample.c | 3 +-- src/temporal/resample.h | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/temporal/resample.c b/src/temporal/resample.c index 7a503f69..458e4805 100644 --- a/src/temporal/resample.c +++ b/src/temporal/resample.c @@ -50,7 +50,7 @@ void del_aubio_resampler(aubio_resampler_t *s) { AUBIO_FREE(s); } -uint_t aubio_resampler_do (aubio_resampler_t *s, +void aubio_resampler_do (aubio_resampler_t *s, fvec_t * input, fvec_t * output) { uint_t i ; s->proc->input_frames = input->length; @@ -64,7 +64,6 @@ uint_t aubio_resampler_do (aubio_resampler_t *s, /* do resampling */ src_process (s->stat, s->proc) ; } - return AUBIO_OK; } #endif /* HAVE_SAMPLERATE */ diff --git a/src/temporal/resample.h b/src/temporal/resample.h index 4a766067..57744886 100644 --- a/src/temporal/resample.h +++ b/src/temporal/resample.h @@ -35,6 +35,7 @@ extern "C" { /** resampler object */ typedef struct _aubio_resampler_t aubio_resampler_t; + /** create resampler object \param ratio output_sample_rate / input_sample_rate @@ -42,8 +43,10 @@ typedef struct _aubio_resampler_t aubio_resampler_t; */ aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type); + /** delete resampler object */ void del_aubio_resampler(aubio_resampler_t *s); + /** resample input in output \param s resampler object @@ -51,7 +54,7 @@ void del_aubio_resampler(aubio_resampler_t *s); \param output output buffer of size N*ratio */ -uint_t aubio_resampler_do (aubio_resampler_t *s, fvec_t * input, fvec_t * output); +void aubio_resampler_do (aubio_resampler_t *s, fvec_t * input, fvec_t * output); #ifdef __cplusplus } -- 2.26.2