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;
/* do resampling */
src_process (s->stat, s->proc) ;
}
- return AUBIO_OK;
}
#endif /* HAVE_SAMPLERATE */
/** resampler object */
typedef struct _aubio_resampler_t aubio_resampler_t;
+
/** create resampler object
\param ratio output_sample_rate / input_sample_rate
*/
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
\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
}