From f437662a5e498fb7cc0a09c0043aad65d9bf79ab Mon Sep 17 00:00:00 2001 From: derselbst Date: Wed, 21 Mar 2018 10:49:32 +0100 Subject: [PATCH] make fluid_audio_callback_t private --- include/fluidsynth/synth.h | 14 -------------- src/synth/fluid_synth.h | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/include/fluidsynth/synth.h b/include/fluidsynth/synth.h index 254316cb..be819937 100644 --- a/include/fluidsynth/synth.h +++ b/include/fluidsynth/synth.h @@ -279,20 +279,6 @@ FLUIDSYNTH_API int fluid_synth_process(fluid_synth_t* synth, int len, int nin, float** in, int nout, float** out); -/** - * Type definition of the synthesizer's audio callback function. - * @param synth FluidSynth instance - * @param len Count of audio frames to synthesize - * @param out1 Array to store left channel of audio to - * @param loff Offset index in 'out1' for first sample - * @param lincr Increment between samples stored to 'out1' - * @param out2 Array to store right channel of audio to - * @param roff Offset index in 'out2' for first sample - * @param rincr Increment between samples stored to 'out2' - */ -typedef int (*fluid_audio_callback_t)(fluid_synth_t* synth, int len, - void* out1, int loff, int lincr, - void* out2, int roff, int rincr); /* Synthesizer's interface to handle SoundFont loaders */ diff --git a/src/synth/fluid_synth.h b/src/synth/fluid_synth.h index a972fabc..3e41893d 100644 --- a/src/synth/fluid_synth.h +++ b/src/synth/fluid_synth.h @@ -170,6 +170,21 @@ struct _fluid_synth_t enum fluid_iir_filter_flags custom_filter_flags; /**< filter type of the user-defined filter currently used for all voices */ }; +/** + * Type definition of the synthesizer's audio callback function. + * @param synth FluidSynth instance + * @param len Count of audio frames to synthesize + * @param out1 Array to store left channel of audio to + * @param loff Offset index in 'out1' for first sample + * @param lincr Increment between samples stored to 'out1' + * @param out2 Array to store right channel of audio to + * @param roff Offset index in 'out2' for first sample + * @param rincr Increment between samples stored to 'out2' + */ +typedef int (*fluid_audio_callback_t)(fluid_synth_t* synth, int len, + void* out1, int loff, int lincr, + void* out2, int roff, int rincr); + fluid_preset_t* fluid_synth_find_preset(fluid_synth_t* synth, unsigned int banknum, unsigned int prognum);