libfluidsynth 2.3.5
|
Topics | |
SoundFont Generators | |
SoundFont Loader | |
SoundFont Modulators | |
Voice Manipulation | |
Functions | |
int | fluid_synth_pin_preset (fluid_synth_t *synth, int sfont_id, int bank_num, int preset_num) |
Pins all samples of the given preset. | |
int | fluid_synth_unpin_preset (fluid_synth_t *synth, int sfont_id, int bank_num, int preset_num) |
Unpin all samples of the given preset. | |
SoundFont related functions
This part of the API contains functions, defines and types that are mostly only used by internal or custom SoundFont loaders or client code that modifies loaded presets, SoundFonts or voices directly.
int fluid_synth_pin_preset | ( | fluid_synth_t * | synth, |
int | sfont_id, | ||
int | bank_num, | ||
int | preset_num ) |
Pins all samples of the given preset.
synth | FluidSynth instance |
sfont_id | ID of a loaded SoundFont |
bank_num | MIDI bank number |
preset_num | MIDI program number |
synth.dynamic-sample-loading
is disabled or the preset doesn't support dynamic-sample-loading.This function will attempt to pin all samples of the given preset and load them into memory, if they are currently unloaded. "To pin" in this context means preventing them from being unloaded by an upcoming channel prog change.
int fluid_synth_unpin_preset | ( | fluid_synth_t * | synth, |
int | sfont_id, | ||
int | bank_num, | ||
int | preset_num ) |
Unpin all samples of the given preset.
synth | FluidSynth instance |
sfont_id | ID of a loaded SoundFont |
bank_num | MIDI bank number |
preset_num | MIDI program number |
This function undoes the effect of fluid_synth_pin_preset(). If the preset is not currently used, its samples will be unloaded.