[][src]Function fluidlite_sys::fluid_synth_sfload

pub unsafe extern "C" fn fluid_synth_sfload(
    synth: *mut fluid_synth_t,
    filename: *const c_char,
    reset_presets: c_int
) -> c_int

Loads a SoundFont file and creates a new SoundFont. The newly loaded SoundFont will be put on top of the SoundFont stack. Presets are searched starting from the SoundFont on the top of the stack, working the way down the stack until a preset is found.

\param synth The synthesizer object \param filename The file name \param reset_presets If non-zero, the presets on the channels will be reset \returns The ID of the loaded SoundFont, or -1 in case of error