Struct crankstart_sys::playdate_sound_sample
source · [−]#[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
sourceimpl Clone for playdate_sound_sample
impl Clone for playdate_sound_sample
sourcefn clone(&self) -> playdate_sound_sample
fn clone(&self) -> playdate_sound_sample
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for playdate_sound_sample
impl Debug for playdate_sound_sample
sourceimpl Default for playdate_sound_sample
impl Default for playdate_sound_sample
sourcefn default() -> playdate_sound_sample
fn default() -> playdate_sound_sample
Returns the “default value” for a type. Read more
sourceimpl PartialEq<playdate_sound_sample> for playdate_sound_sample
impl PartialEq<playdate_sound_sample> for playdate_sound_sample
sourcefn eq(&self, other: &playdate_sound_sample) -> bool
fn eq(&self, other: &playdate_sound_sample) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &playdate_sound_sample) -> bool
fn ne(&self, other: &playdate_sound_sample) -> bool
This method tests for !=
.
impl Copy for playdate_sound_sample
impl Eq for playdate_sound_sample
impl StructuralEq for playdate_sound_sample
impl StructuralPartialEq for playdate_sound_sample
Auto Trait Implementations
impl RefUnwindSafe for playdate_sound_sample
impl Send for playdate_sound_sample
impl Sync for playdate_sound_sample
impl Unpin for playdate_sound_sample
impl UnwindSafe for playdate_sound_sample
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more