ref: 06f2d78ae6d20238dc8c89f1b490f0862a49c450
parent: 47f17fc9d9bbfb3adf87fdaf69aca8131cb61013
author: Paul Brossier <piem@piem.org>
date: Thu Oct 8 08:03:08 EDT 2009
src/temporal/resample.{c,h}: _do function returns void
--- a/src/temporal/resample.c
+++ b/src/temporal/resample.c
@@ -50,7 +50,7 @@
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 @@
/* do resampling */
src_process (s->stat, s->proc) ;
}
- return AUBIO_OK;
}
#endif /* HAVE_SAMPLERATE */
--- a/src/temporal/resample.h
+++ b/src/temporal/resample.h
@@ -35,6 +35,7 @@
/** 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 @@
*/
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 @@
\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
}