libfluidsynth  2.4.6
Creating the synthesizer

To create the synthesizer, you pass it the settings object, as in the following example:

#include <fluidsynth.h>
int main(int argc, char** argv)
{
fluid_settings_t* settings;
fluid_synth_t* synth;
settings = new_fluid_settings();
synth = new_fluid_synth(settings);
/* Do useful things here */
return 0;
}
struct _fluid_hashtable_t fluid_settings_t
Configuration settings instance.
Definition: types.h:37
struct _fluid_synth_t fluid_synth_t
Synthesizer instance.
Definition: types.h:38
fluid_settings_t * new_fluid_settings(void)
Create a new settings object.
Definition: fluid_settings.c:261
void delete_fluid_settings(fluid_settings_t *settings)
Delete the provided settings object.
Definition: fluid_settings.c:285
fluid_synth_t * new_fluid_synth(fluid_settings_t *settings)
Create new FluidSynth instance.
Definition: fluid_synth.c:644
void delete_fluid_synth(fluid_synth_t *synth)
Delete a FluidSynth instance.
Definition: fluid_synth.c:1043

For a full list of available synthesizer settings, please refer to the Synthesizer settings documentation.