ref: 313eb2b1610d0dc5c152b7c5f8d2f72979d9375c
parent: afe90ee9fbd1a273515666d6e7f7a3e1f9f4c955
author: Paul Brossier <piem@piem.org>
date: Wed Nov 21 15:55:09 EST 2018
[wavetable] add dummy load implementation, add todo entry in documentation
--- a/src/synth/wavetable.c
+++ b/src/synth/wavetable.c
@@ -167,6 +167,13 @@
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 );
--- a/src/synth/wavetable.h
+++ b/src/synth/wavetable.h
@@ -53,6 +53,8 @@
/** 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