Struct crankstart_sys::playdate_sound_source
source · [−]#[repr(C)]pub struct playdate_sound_source {
pub setVolume: Option<unsafe extern "C" fn(c: *mut SoundSource, lvol: f32, rvol: f32)>,
pub getVolume: Option<unsafe extern "C" fn(c: *mut SoundSource, outl: *mut f32, outr: *mut f32)>,
pub isPlaying: Option<unsafe extern "C" fn(c: *mut SoundSource) -> c_int>,
pub setFinishCallback: Option<unsafe extern "C" fn(c: *mut SoundSource, callback: sndCallbackProc)>,
}
Fields
setVolume: Option<unsafe extern "C" fn(c: *mut SoundSource, lvol: f32, rvol: f32)>
getVolume: Option<unsafe extern "C" fn(c: *mut SoundSource, outl: *mut f32, outr: *mut f32)>
isPlaying: Option<unsafe extern "C" fn(c: *mut SoundSource) -> c_int>
setFinishCallback: Option<unsafe extern "C" fn(c: *mut SoundSource, callback: sndCallbackProc)>
Trait Implementations
sourceimpl Clone for playdate_sound_source
impl Clone for playdate_sound_source
sourcefn clone(&self) -> playdate_sound_source
fn clone(&self) -> playdate_sound_source
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_source
impl Debug for playdate_sound_source
sourceimpl Default for playdate_sound_source
impl Default for playdate_sound_source
sourcefn default() -> playdate_sound_source
fn default() -> playdate_sound_source
Returns the “default value” for a type. Read more
sourceimpl PartialEq<playdate_sound_source> for playdate_sound_source
impl PartialEq<playdate_sound_source> for playdate_sound_source
sourcefn eq(&self, other: &playdate_sound_source) -> bool
fn eq(&self, other: &playdate_sound_source) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &playdate_sound_source) -> bool
fn ne(&self, other: &playdate_sound_source) -> bool
This method tests for !=
.
impl Copy for playdate_sound_source
impl Eq for playdate_sound_source
impl StructuralEq for playdate_sound_source
impl StructuralPartialEq for playdate_sound_source
Auto Trait Implementations
impl RefUnwindSafe for playdate_sound_source
impl Send for playdate_sound_source
impl Sync for playdate_sound_source
impl Unpin for playdate_sound_source
impl UnwindSafe for playdate_sound_source
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