From c10b0db8b439ad22d9c30409f8b804101c479bb0 Mon Sep 17 00:00:00 2001 From: derselbst Date: Thu, 19 Oct 2017 22:52:05 +0200 Subject: [PATCH] apply FLUID_DEPRECATED for public synth functions --- include/fluidsynth/synth.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/include/fluidsynth/synth.h b/include/fluidsynth/synth.h index 37b8da79..fa279ef3 100644 --- a/include/fluidsynth/synth.h +++ b/include/fluidsynth/synth.h @@ -95,8 +95,9 @@ FLUIDSYNTH_API int fluid_synth_get_program(fluid_synth_t* synth, int chan, unsigned int* sfont_id, unsigned int* bank_num, unsigned int* preset_num); FLUIDSYNTH_API int fluid_synth_unset_program (fluid_synth_t *synth, int chan); -FLUIDSYNTH_API int fluid_synth_get_channel_info (fluid_synth_t *synth, int chan, - fluid_synth_channel_info_t *info); +FLUIDSYNTH_API +FLUID_DEPRECATED +int fluid_synth_get_channel_info (fluid_synth_t *synth, int chan, fluid_synth_channel_info_t *info); FLUIDSYNTH_API int fluid_synth_program_reset(fluid_synth_t* synth); FLUIDSYNTH_API int fluid_synth_system_reset(fluid_synth_t* synth); @@ -244,12 +245,14 @@ FLUIDSYNTH_API float fluid_synth_get_gen(fluid_synth_t* synth, int chan, int par /* Tuning */ FLUIDSYNTH_API +FLUID_DEPRECATED int fluid_synth_create_key_tuning(fluid_synth_t* synth, int bank, int prog, const char* name, const double* pitch); FLUIDSYNTH_API int fluid_synth_activate_key_tuning(fluid_synth_t* synth, int bank, int prog, const char* name, const double* pitch, int apply); FLUIDSYNTH_API +FLUID_DEPRECATED int fluid_synth_create_octave_tuning(fluid_synth_t* synth, int bank, int prog, const char* name, const double* pitch); FLUIDSYNTH_API @@ -259,11 +262,14 @@ FLUIDSYNTH_API int fluid_synth_tune_notes(fluid_synth_t* synth, int bank, int prog, int len, const int *keys, const double* pitch, int apply); FLUIDSYNTH_API +FLUID_DEPRECATED int fluid_synth_select_tuning(fluid_synth_t* synth, int chan, int bank, int prog); FLUIDSYNTH_API int fluid_synth_activate_tuning(fluid_synth_t* synth, int chan, int bank, int prog, int apply); -FLUIDSYNTH_API int fluid_synth_reset_tuning(fluid_synth_t* synth, int chan); +FLUIDSYNTH_API +FLUID_DEPRECATED +int fluid_synth_reset_tuning(fluid_synth_t* synth, int chan); FLUIDSYNTH_API int fluid_synth_deactivate_tuning(fluid_synth_t* synth, int chan, int apply); FLUIDSYNTH_API void fluid_synth_tuning_iteration_start(fluid_synth_t* synth); @@ -336,8 +342,9 @@ FLUIDSYNTH_API void fluid_synth_start_voice(fluid_synth_t* synth, fluid_voice_t* FLUIDSYNTH_API void fluid_synth_get_voicelist(fluid_synth_t* synth, fluid_voice_t* buf[], int bufsize, int ID); FLUIDSYNTH_API int fluid_synth_handle_midi_event(void* data, fluid_midi_event_t* event); -FLUIDSYNTH_API void fluid_synth_set_midi_router(fluid_synth_t* synth, - fluid_midi_router_t* router); +FLUIDSYNTH_API +FLUID_DEPRECATED +void fluid_synth_set_midi_router(fluid_synth_t* synth, fluid_midi_router_t* router); #ifdef __cplusplus }