#[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

source§

fn clone(&self) -> playdate_sound

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for playdate_sound

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for playdate_sound

source§

fn default() -> Self

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

impl PartialEq<playdate_sound> for playdate_sound

source§

fn eq(&self, other: &playdate_sound) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for playdate_sound

source§

impl Eq for playdate_sound

source§

impl StructuralEq for playdate_sound

source§

impl StructuralPartialEq for playdate_sound

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.