#[repr(C)]pub struct playdate_sound {Show 22 fields
pub channel: *const playdate_sound_channel,
pub fileplayer: *const playdate_sound_fileplayer,
pub sample: *const playdate_sound_sample,
pub sampleplayer: *const playdate_sound_sampleplayer,
pub synth: *const playdate_sound_synth,
pub sequence: *const playdate_sound_sequence,
pub effect: *const playdate_sound_effect,
pub lfo: *const playdate_sound_lfo,
pub envelope: *const playdate_sound_envelope,
pub source: *const playdate_sound_source,
pub controlsignal: *const playdate_control_signal,
pub track: *const playdate_sound_track,
pub instrument: *const playdate_sound_instrument,
pub getCurrentTime: Option<unsafe extern "C" fn() -> u32>,
pub addSource: Option<unsafe extern "C" fn(callback: AudioSourceFunction, context: *mut c_void, stereo: c_int) -> *mut SoundSource>,
pub getDefaultChannel: Option<unsafe extern "C" fn() -> *mut SoundChannel>,
pub addChannel: Option<unsafe extern "C" fn(channel: *mut SoundChannel)>,
pub removeChannel: Option<unsafe extern "C" fn(channel: *mut SoundChannel)>,
pub setMicCallback: Option<unsafe extern "C" fn(callback: RecordCallback, context: *mut c_void, forceInternal: c_int)>,
pub getHeadphoneState: Option<unsafe extern "C" fn(headphone: *mut c_int, headsetmic: *mut c_int, changeCallback: Option<unsafe extern "C" fn(headphone: c_int, mic: c_int)>)>,
pub setOutputsActive: Option<unsafe extern "C" fn(headphone: c_int, speaker: c_int)>,
pub removeSource: Option<unsafe extern "C" fn(source: *mut SoundSource)>,
}Fields§
§channel: *const playdate_sound_channel§fileplayer: *const playdate_sound_fileplayer§sample: *const playdate_sound_sample§sampleplayer: *const playdate_sound_sampleplayer§synth: *const playdate_sound_synth§sequence: *const playdate_sound_sequence§effect: *const playdate_sound_effect§lfo: *const playdate_sound_lfo§envelope: *const playdate_sound_envelope§source: *const playdate_sound_source§controlsignal: *const playdate_control_signal§track: *const playdate_sound_track§instrument: *const playdate_sound_instrument§getCurrentTime: Option<unsafe extern "C" fn() -> u32>§addSource: Option<unsafe extern "C" fn(callback: AudioSourceFunction, context: *mut c_void, stereo: c_int) -> *mut SoundSource>§getDefaultChannel: Option<unsafe extern "C" fn() -> *mut SoundChannel>§addChannel: Option<unsafe extern "C" fn(channel: *mut SoundChannel)>§removeChannel: Option<unsafe extern "C" fn(channel: *mut SoundChannel)>§setMicCallback: Option<unsafe extern "C" fn(callback: RecordCallback, context: *mut c_void, forceInternal: c_int)>§getHeadphoneState: Option<unsafe extern "C" fn(headphone: *mut c_int, headsetmic: *mut c_int, changeCallback: Option<unsafe extern "C" fn(headphone: c_int, mic: c_int)>)>§setOutputsActive: Option<unsafe extern "C" fn(headphone: c_int, speaker: c_int)>§removeSource: Option<unsafe extern "C" fn(source: *mut SoundSource)>Trait Implementations§
Source§impl Clone for playdate_sound
impl Clone for playdate_sound
Source§fn clone(&self) -> playdate_sound
fn clone(&self) -> playdate_sound
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
impl Debug for playdate_sound
impl Copy for playdate_sound
Auto Trait Implementations§
impl Freeze for playdate_sound
impl RefUnwindSafe for playdate_sound
impl !Send for playdate_sound
impl !Sync for playdate_sound
impl Unpin for playdate_sound
impl UnwindSafe for playdate_sound
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