elaborate on "preset reset"

This commit is contained in:
derselbst 2017-12-29 22:18:08 +01:00
parent c56d09be6c
commit 6148771b1e
1 changed files with 3 additions and 2 deletions

View File

@ -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
* @return FLUID_OK on success, FLUID_FAILED otherwise
*
@ -2596,6 +2596,7 @@ int
fluid_synth_program_reset(fluid_synth_t* synth)
{
int i, prog;
fluid_return_val_if_fail (synth != NULL, FLUID_FAILED);
fluid_synth_api_enter(synth);
/* try to set the correct presets */
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 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
*/
int