#[repr(C)]pub struct _fluid_sample_t {Show 16 fields
pub name: [c_char; 21],
pub start: c_uint,
pub end: c_uint,
pub loopstart: c_uint,
pub loopend: c_uint,
pub samplerate: c_uint,
pub origpitch: c_int,
pub pitchadj: c_int,
pub sampletype: c_int,
pub valid: c_int,
pub data: *mut c_short,
pub amplitude_that_reaches_noise_floor_is_valid: c_int,
pub amplitude_that_reaches_noise_floor: f64,
pub refcount: c_uint,
pub notify: Option<unsafe extern "C" fn(sample: *mut fluid_sample_t, reason: c_int) -> c_int>,
pub userdata: *mut c_void,
}Fields§
§name: [c_char; 21]§start: c_uint§end: c_uint§loopstart: c_uint§loopend: c_uint§samplerate: c_uint§origpitch: c_int§pitchadj: c_int§sampletype: c_int§valid: c_int§data: *mut c_short§amplitude_that_reaches_noise_floor_is_valid: c_intThe 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: c_uintCount the number of playing voices that use this sample.
notify: Option<unsafe extern "C" fn(sample: *mut fluid_sample_t, reason: c_int) -> c_int>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
Trait Implementations§
Source§impl Clone for _fluid_sample_t
impl Clone for _fluid_sample_t
Source§fn clone(&self) -> _fluid_sample_t
fn clone(&self) -> _fluid_sample_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for _fluid_sample_t
impl Debug for _fluid_sample_t
impl Copy for _fluid_sample_t
Auto Trait Implementations§
impl Freeze for _fluid_sample_t
impl RefUnwindSafe for _fluid_sample_t
impl !Send for _fluid_sample_t
impl !Sync for _fluid_sample_t
impl Unpin for _fluid_sample_t
impl UnwindSafe for _fluid_sample_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more