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§
source§impl Clone for playdate_sound_source
impl Clone for playdate_sound_source
source§fn clone(&self) -> playdate_sound_source
fn clone(&self) -> playdate_sound_source
Returns a copy 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 playdate_sound_source
impl Debug for playdate_sound_source
source§impl Default for playdate_sound_source
impl Default for playdate_sound_source
source§fn default() -> playdate_sound_source
fn default() -> playdate_sound_source
Returns the “default value” for a type. Read more
source§impl PartialEq<playdate_sound_source> for playdate_sound_source
impl PartialEq<playdate_sound_source> for playdate_sound_source
source§fn 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 ==
.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§
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