pub type fluid_preset_t = _fluid_preset_t;Aliased Type§
#[repr(C)]pub struct fluid_preset_t {
pub data: *mut c_void,
pub sfont: *mut _fluid_sfont_t,
pub free: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> i32>,
pub get_name: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> *mut i8>,
pub get_banknum: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> i32>,
pub get_num: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> i32>,
pub noteon: Option<unsafe extern "C" fn(*mut _fluid_preset_t, *mut _fluid_synth_t, i32, i32, i32) -> i32>,
pub notify: Option<unsafe extern "C" fn(*mut _fluid_preset_t, i32, i32) -> i32>,
}Fields§
§data: *mut c_void§sfont: *mut _fluid_sfont_t§free: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> i32>§get_name: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> *mut i8>§get_banknum: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> i32>§get_num: Option<unsafe extern "C" fn(*mut _fluid_preset_t) -> i32>§noteon: Option<unsafe extern "C" fn(*mut _fluid_preset_t, *mut _fluid_synth_t, i32, i32, i32) -> i32>handle a noteon event. Returns 0 if no error occured.
notify: Option<unsafe extern "C" fn(*mut _fluid_preset_t, i32, i32) -> i32>Implement this function if the preset needs to be notified about preset select and unselect events.