pub type fluid_sample_t = _fluid_sample_t;Aliased Type§
#[repr(C)]pub struct fluid_sample_t {Show 16 fields
pub name: [i8; 21],
pub start: u32,
pub end: u32,
pub loopstart: u32,
pub loopend: u32,
pub samplerate: u32,
pub origpitch: i32,
pub pitchadj: i32,
pub sampletype: i32,
pub valid: i32,
pub data: *mut i16,
pub amplitude_that_reaches_noise_floor_is_valid: i32,
pub amplitude_that_reaches_noise_floor: f64,
pub refcount: u32,
pub notify: Option<unsafe extern "C" fn(*mut _fluid_sample_t, i32) -> i32>,
pub userdata: *mut c_void,
}Fields§
§name: [i8; 21]§start: u32§end: u32§loopstart: u32§loopend: u32§samplerate: u32§origpitch: i32§pitchadj: i32§sampletype: i32§valid: i32§data: *mut i16§amplitude_that_reaches_noise_floor_is_valid: i32The amplitude, that will lower the level of the sample’s loop to the noise floor. Needed for note turnoff optimization, will be filled out automatically
amplitude_that_reaches_noise_floor: f64§refcount: u32Count the number of playing voices that use this sample.
notify: Option<unsafe extern "C" fn(*mut _fluid_sample_t, i32) -> i32>Implement this function if the sample or SoundFont needs to be notified when the sample is no longer used.
userdata: *mut c_voidPointer to SoundFont specific data