#[repr(C)]
pub struct playdate_sound_sample { pub newSampleBuffer: Option<unsafe extern "C" fn(byteCount: c_int) -> *mut AudioSample>, pub loadIntoSample: Option<unsafe extern "C" fn(sample: *mut AudioSample, path: *const c_char) -> c_int>, pub load: Option<unsafe extern "C" fn(path: *const c_char) -> *mut AudioSample>, pub newSampleFromData: Option<unsafe extern "C" fn(data: *mut u8, format: SoundFormat, sampleRate: u32, byteCount: c_int) -> *mut AudioSample>, pub getData: Option<unsafe extern "C" fn(sample: *mut AudioSample, data: *mut *mut u8, format: *mut SoundFormat, sampleRate: *mut u32, bytelength: *mut u32)>, pub freeSample: Option<unsafe extern "C" fn(sample: *mut AudioSample)>, pub getLength: Option<unsafe extern "C" fn(sample: *mut AudioSample) -> f32>, }

Fields

newSampleBuffer: Option<unsafe extern "C" fn(byteCount: c_int) -> *mut AudioSample>loadIntoSample: Option<unsafe extern "C" fn(sample: *mut AudioSample, path: *const c_char) -> c_int>load: Option<unsafe extern "C" fn(path: *const c_char) -> *mut AudioSample>newSampleFromData: Option<unsafe extern "C" fn(data: *mut u8, format: SoundFormat, sampleRate: u32, byteCount: c_int) -> *mut AudioSample>getData: Option<unsafe extern "C" fn(sample: *mut AudioSample, data: *mut *mut u8, format: *mut SoundFormat, sampleRate: *mut u32, bytelength: *mut u32)>freeSample: Option<unsafe extern "C" fn(sample: *mut AudioSample)>getLength: Option<unsafe extern "C" fn(sample: *mut AudioSample) -> f32>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.