From f6c4c1c461a3d8c8dc8f00addbb0e685f53564d2 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 17 Sep 2016 01:44:22 +0200 Subject: [PATCH] src/effects/pitchshift.c: add some comments --- src/effects/pitchshift.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/effects/pitchshift.c b/src/effects/pitchshift.c index 25e6960f..ae1d6ab5 100644 --- a/src/effects/pitchshift.c +++ b/src/effects/pitchshift.c @@ -144,6 +144,9 @@ aubio_pitchshift_do (aubio_pitchshift_t * p, const fvec_t * in, fvec_t * out) } #else + +// TODO fallback pitch shifting implementation + struct _aubio_pitchshift_t { void *dummy; @@ -153,7 +156,8 @@ void aubio_pitchshift_do (aubio_pitchshift_t * o UNUSED, const fvec_t * in UNUSE fvec_t * out UNUSED) { } -void del_aubio_pitchshift (aubio_pitchshift_t * o UNUSED) {} +void del_aubio_pitchshift (aubio_pitchshift_t * o UNUSED) { +} aubio_pitchshift_t *new_aubio_pitchshift (const char_t * method UNUSED, smpl_t pitchscale UNUSED, uint_t hop_size UNUSED, uint_t samplerate UNUSED) @@ -161,18 +165,25 @@ aubio_pitchshift_t *new_aubio_pitchshift (const char_t * method UNUSED, AUBIO_ERR ("aubio was not compiled with rubberband\n"); return NULL; } + uint_t aubio_pitchshift_set_pitchscale (aubio_pitchshift_t * o UNUSED, smpl_t pitchscale UNUSED) { return AUBIO_FAIL; } + smpl_t aubio_pitchshift_get_pitchscale (aubio_pitchshift_t * o UNUSED) { return 1.; } + uint_t aubio_pitchshift_set_transpose (aubio_pitchshift_t * o UNUSED, smpl_t transpose UNUSED) { return AUBIO_FAIL; } + smpl_t aubio_pitchshift_get_transpose (aubio_pitchshift_t * o UNUSED) { return 0.; } + +// end of dummy implementation + #endif /* HAVE_RUBBERBAND */ -- 2.11.0