#[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_channelfileplayer: *const playdate_sound_fileplayersample: *const playdate_sound_samplesampleplayer: *const playdate_sound_sampleplayersynth: *const playdate_sound_synthsequence: *const playdate_sound_sequenceeffect: *const playdate_sound_effectlfo: *const playdate_sound_lfoenvelope: *const playdate_sound_envelopesource: *const playdate_sound_sourcecontrolsignal: *const playdate_control_signaltrack: *const playdate_sound_trackinstrument: *const playdate_sound_instrumentgetCurrentTime: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.