#[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 duplicate 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
impl Copy for playdate_sound_source
Auto Trait Implementations§
impl Freeze for playdate_sound_source
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