[][src]Struct fluidlite_sys::_fluid_sample_t

#[repr(C)]
pub struct _fluid_sample_t {
    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_uintend: c_uintloopstart: c_uintloopend: c_uintsamplerate: c_uintorigpitch: c_intpitchadj: c_intsampletype: c_intvalid: c_intdata: *mut c_shortamplitude_that_reaches_noise_floor_is_valid: c_int

The 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: f64refcount: c_uint

Count 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_void

Pointer to SoundFont specific data

Trait Implementations

impl Clone for _fluid_sample_t[src]

impl Copy for _fluid_sample_t[src]

impl Debug for _fluid_sample_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.