[][src]Function fluidlite_sys::fluid_synth_program_select

pub unsafe extern "C" fn fluid_synth_program_select(
    synth: *mut fluid_synth_t,
    chan: c_int,
    sfont_id: c_uint,
    bank_num: c_uint,
    preset_num: c_uint
) -> c_int

Select a preset for a channel. The preset is specified by the SoundFont ID, the bank number, and the preset number. This allows any preset to be selected and circumvents preset masking due to previously loaded SoundFonts on the SoundFont stack.

\param synth The synthesizer \param chan The channel on which to set the preset \param sfont_id The ID of the SoundFont \param bank_num The bank number \param preset_num The preset number \return 0 if no errors occured, -1 otherwise