Struct crankstart_sys::playdate_sound_signal
source · #[repr(C)]pub struct playdate_sound_signal {
pub newSignal: Option<unsafe extern "C" fn(step: signalStepFunc, noteOn: signalNoteOnFunc, noteOff: signalNoteOffFunc, dealloc: signalDeallocFunc, userdata: *mut c_void) -> *mut PDSynthSignal>,
pub freeSignal: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal)>,
pub getValue: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal) -> f32>,
pub setValueScale: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal, scale: f32)>,
pub setValueOffset: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal, offset: f32)>,
}
Fields§
§newSignal: Option<unsafe extern "C" fn(step: signalStepFunc, noteOn: signalNoteOnFunc, noteOff: signalNoteOffFunc, dealloc: signalDeallocFunc, userdata: *mut c_void) -> *mut PDSynthSignal>
§freeSignal: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal)>
§getValue: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal) -> f32>
§setValueScale: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal, scale: f32)>
§setValueOffset: Option<unsafe extern "C" fn(signal: *mut PDSynthSignal, offset: f32)>
Trait Implementations§
source§impl Clone for playdate_sound_signal
impl Clone for playdate_sound_signal
source§fn clone(&self) -> playdate_sound_signal
fn clone(&self) -> playdate_sound_signal
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_signal
impl Debug for playdate_sound_signal
source§impl Default for playdate_sound_signal
impl Default for playdate_sound_signal
source§fn default() -> playdate_sound_signal
fn default() -> playdate_sound_signal
Returns the “default value” for a type. Read more
source§impl PartialEq<playdate_sound_signal> for playdate_sound_signal
impl PartialEq<playdate_sound_signal> for playdate_sound_signal
source§fn eq(&self, other: &playdate_sound_signal) -> bool
fn eq(&self, other: &playdate_sound_signal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for playdate_sound_signal
impl Eq for playdate_sound_signal
impl StructuralEq for playdate_sound_signal
impl StructuralPartialEq for playdate_sound_signal
Auto Trait Implementations§
impl RefUnwindSafe for playdate_sound_signal
impl Send for playdate_sound_signal
impl Sync for playdate_sound_signal
impl Unpin for playdate_sound_signal
impl UnwindSafe for playdate_sound_signal
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