mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-08 01:02:09 +00:00
elaborate on "preset reset"
This commit is contained in:
parent
c56d09be6c
commit
6148771b1e
1 changed files with 3 additions and 2 deletions
|
@ -2585,7 +2585,7 @@ fluid_synth_get_internal_bufsize(fluid_synth_t* synth)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resend a bank select and a program change for every channel.
|
* Resend a bank select and a program change for every channel and assign corresponding instruments.
|
||||||
* @param synth FluidSynth instance
|
* @param synth FluidSynth instance
|
||||||
* @return FLUID_OK on success, FLUID_FAILED otherwise
|
* @return FLUID_OK on success, FLUID_FAILED otherwise
|
||||||
*
|
*
|
||||||
|
@ -2596,6 +2596,7 @@ int
|
||||||
fluid_synth_program_reset(fluid_synth_t* synth)
|
fluid_synth_program_reset(fluid_synth_t* synth)
|
||||||
{
|
{
|
||||||
int i, prog;
|
int i, prog;
|
||||||
|
fluid_return_val_if_fail (synth != NULL, FLUID_FAILED);
|
||||||
fluid_synth_api_enter(synth);
|
fluid_synth_api_enter(synth);
|
||||||
/* try to set the correct presets */
|
/* try to set the correct presets */
|
||||||
for (i = 0; i < synth->midi_channels; i++){
|
for (i = 0; i < synth->midi_channels; i++){
|
||||||
|
@ -3409,7 +3410,7 @@ fluid_synth_add_sfloader(fluid_synth_t* synth, fluid_sfloader_t* loader)
|
||||||
*
|
*
|
||||||
* @param synth FluidSynth instance
|
* @param synth FluidSynth instance
|
||||||
* @param filename File to load
|
* @param filename File to load
|
||||||
* @param reset_presets TRUE to re-assign presets for all MIDI channels
|
* @param reset_presets TRUE to re-assign presets for all MIDI channels (equivalent to calling fluid_synth_program_reset())
|
||||||
* @return SoundFont ID on success, FLUID_FAILED on error
|
* @return SoundFont ID on success, FLUID_FAILED on error
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue