From 313eb2b1610d0dc5c152b7c5f8d2f72979d9375c Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 21 Nov 2018 20:55:09 +0100 Subject: [PATCH] [wavetable] add dummy load implementation, add todo entry in documentation --- src/synth/wavetable.c | 7 +++++++ src/synth/wavetable.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/synth/wavetable.c b/src/synth/wavetable.c index f7237c2b..43ece36c 100644 --- a/src/synth/wavetable.c +++ b/src/synth/wavetable.c @@ -167,6 +167,13 @@ uint_t aubio_wavetable_stop ( aubio_wavetable_t * s ) return aubio_wavetable_set_playing (s, 0); } +uint_t +aubio_wavetable_load ( aubio_wavetable_t *s UNUSED, const char_t *uri UNUSED) +{ + AUBIO_ERR("wavetable: load method not implemented yet, see sampler\n"); + return AUBIO_FAIL; +} + uint_t aubio_wavetable_set_freq ( aubio_wavetable_t * s, smpl_t freq ) { return aubio_parameter_set_target_value ( s->freq, freq ); diff --git a/src/synth/wavetable.h b/src/synth/wavetable.h index b3335754..98d32d9c 100644 --- a/src/synth/wavetable.h +++ b/src/synth/wavetable.h @@ -53,6 +53,8 @@ aubio_wavetable_t * new_aubio_wavetable(uint_t samplerate, uint_t hop_size); /** load source in wavetable + \TODO This function is not implemented yet. See new_aubio_sampler() instead. + \param o wavetable, created by new_aubio_wavetable() \param uri the uri of the source to load -- 2.11.0