Struct crankstart_sys::playdate_sound
source · #[repr(C)]pub struct playdate_sound {Show 23 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) -> c_int>,
pub removeChannel: Option<unsafe extern "C" fn(channel: *mut SoundChannel) -> c_int>,
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) -> c_int>,
pub signal: *const playdate_sound_signal,
}
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) -> c_int>
§removeChannel: Option<unsafe extern "C" fn(channel: *mut SoundChannel) -> c_int>
§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) -> c_int>
§signal: *const playdate_sound_signal
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 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
impl Debug for playdate_sound
source§impl Default for playdate_sound
impl Default for playdate_sound
source§impl PartialEq<playdate_sound> for playdate_sound
impl PartialEq<playdate_sound> for playdate_sound
source§fn eq(&self, other: &playdate_sound) -> bool
fn eq(&self, other: &playdate_sound) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for playdate_sound
impl Eq for playdate_sound
impl StructuralEq for playdate_sound
impl StructuralPartialEq for playdate_sound
Auto Trait Implementations§
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