#[repr(C)]pub struct playdate_sound_effect_ringmodulator {
pub newRingmod: Option<unsafe extern "C" fn() -> *mut RingModulator>,
pub freeRingmod: Option<unsafe extern "C" fn(filter: *mut RingModulator)>,
pub setFrequency: Option<unsafe extern "C" fn(filter: *mut RingModulator, frequency: c_float)>,
pub setFrequencyModulator: Option<unsafe extern "C" fn(filter: *mut RingModulator, signal: *mut PDSynthSignalValue)>,
pub getFrequencyModulator: Option<unsafe extern "C" fn(filter: *mut RingModulator) -> *mut PDSynthSignalValue>,
}
Fields§
§newRingmod: Option<unsafe extern "C" fn() -> *mut RingModulator>
RingModulator* playdate->sound->effect->ringmodulator->newRingmod(void)
Returns a new ring modulator effect.
freeRingmod: Option<unsafe extern "C" fn(filter: *mut RingModulator)>
§setFrequency: Option<unsafe extern "C" fn(filter: *mut RingModulator, frequency: c_float)>
void playdate->sound->effect->ringmodulator->setFrequency(RingModulator* filter, float frequency)
Sets the frequency of the modulation signal.
setFrequencyModulator: Option<unsafe extern "C" fn(filter: *mut RingModulator, signal: *mut PDSynthSignalValue)>
void playdate->sound->effect->ringmodulator->setFrequencyModulator(RingModulator* filter, PDSynthSignalValue* signal)
Sets a signal to modulate the frequency of the ring modulator. Set to NULL to clear the modulator.
getFrequencyModulator: Option<unsafe extern "C" fn(filter: *mut RingModulator) -> *mut PDSynthSignalValue>
PDSynthSignalValue* playdate->sound->effect->ringmodulator->getFrequencyModulator(RingModulator* filter)
Returns the currently set frequency modulator.
Trait Implementations§
source§impl Clone for playdate_sound_effect_ringmodulator
impl Clone for playdate_sound_effect_ringmodulator
source§fn clone(&self) -> playdate_sound_effect_ringmodulator
fn clone(&self) -> playdate_sound_effect_ringmodulator
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for playdate_sound_effect_ringmodulator
impl Debug for playdate_sound_effect_ringmodulator
source§impl Default for playdate_sound_effect_ringmodulator
impl Default for playdate_sound_effect_ringmodulator
source§fn default() -> playdate_sound_effect_ringmodulator
fn default() -> playdate_sound_effect_ringmodulator
source§impl Hash for playdate_sound_effect_ringmodulator
impl Hash for playdate_sound_effect_ringmodulator
source§impl Ord for playdate_sound_effect_ringmodulator
impl Ord for playdate_sound_effect_ringmodulator
source§fn cmp(&self, other: &playdate_sound_effect_ringmodulator) -> Ordering
fn cmp(&self, other: &playdate_sound_effect_ringmodulator) -> Ordering
1.21.0§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for playdate_sound_effect_ringmodulator
impl PartialEq for playdate_sound_effect_ringmodulator
source§fn eq(&self, other: &playdate_sound_effect_ringmodulator) -> bool
fn eq(&self, other: &playdate_sound_effect_ringmodulator) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for playdate_sound_effect_ringmodulator
impl PartialOrd for playdate_sound_effect_ringmodulator
source§fn partial_cmp(
&self,
other: &playdate_sound_effect_ringmodulator
) -> Option<Ordering>
fn partial_cmp( &self, other: &playdate_sound_effect_ringmodulator ) -> Option<Ordering>
1.0.0§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for playdate_sound_effect_ringmodulator
impl Eq for playdate_sound_effect_ringmodulator
impl StructuralPartialEq for playdate_sound_effect_ringmodulator
Auto Trait Implementations§
impl Freeze for playdate_sound_effect_ringmodulator
impl RefUnwindSafe for playdate_sound_effect_ringmodulator
impl Send for playdate_sound_effect_ringmodulator
impl Sync for playdate_sound_effect_ringmodulator
impl Unpin for playdate_sound_effect_ringmodulator
impl UnwindSafe for playdate_sound_effect_ringmodulator
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 20 bytes