From 734eaa9bb49099ab30ebf90c0d23a2cd779c9f89 Mon Sep 17 00:00:00 2001 From: derselbst Date: Mon, 18 Jun 2018 16:21:37 +0200 Subject: [PATCH] deprecate fluid_synth_nwrite_float() in favor of fluid_synth_process() --- include/fluidsynth/synth.h | 2 +- src/synth/fluid_synth.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fluidsynth/synth.h b/include/fluidsynth/synth.h index 72940d42..2010b458 100644 --- a/include/fluidsynth/synth.h +++ b/include/fluidsynth/synth.h @@ -261,7 +261,7 @@ FLUIDSYNTH_API int fluid_synth_write_s16(fluid_synth_t* synth, int len, FLUIDSYNTH_API int fluid_synth_write_float(fluid_synth_t* synth, int len, void* lout, int loff, int lincr, void* rout, int roff, int rincr); -FLUIDSYNTH_API int fluid_synth_nwrite_float(fluid_synth_t* synth, int len, +FLUID_DEPRECATED FLUIDSYNTH_API int fluid_synth_nwrite_float(fluid_synth_t* synth, int len, float** left, float** right, float** fx_left, float** fx_right); FLUIDSYNTH_API int fluid_synth_process(fluid_synth_t* synth, int len, diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index 6bfe13f0..d5951bf9 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -2940,6 +2940,8 @@ fluid_synth_program_reset(fluid_synth_t* synth) fluid_synth_nwrite_float(synth, FramesToRender, mix_buf_l, mix_buf_r, fx_buf_l, fx_buf_r) * @endcode + * + * @deprecated fluid_synth_nwrite_float() is deprecated. Consider using the more powerful and flexible fluid_synth_process(). */ int fluid_synth_nwrite_float(fluid_synth_t* synth, int len,