#[repr(C)]pub struct playdate_sound_effect_bitcrusher {
pub newBitCrusher: Option<unsafe extern "C" fn() -> *mut BitCrusher>,
pub freeBitCrusher: Option<unsafe extern "C" fn(filter: *mut BitCrusher)>,
pub setAmount: Option<unsafe extern "C" fn(filter: *mut BitCrusher, amount: c_float)>,
pub setAmountModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher, signal: *mut PDSynthSignalValue)>,
pub getAmountModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher) -> *mut PDSynthSignalValue>,
pub setUndersampling: Option<unsafe extern "C" fn(filter: *mut BitCrusher, undersampling: c_float)>,
pub setUndersampleModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher, signal: *mut PDSynthSignalValue)>,
pub getUndersampleModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher) -> *mut PDSynthSignalValue>,
}
Fields§
§newBitCrusher: Option<unsafe extern "C" fn() -> *mut BitCrusher>
BitCrusher* playdate->sound->effect->bitcrusher->newBitCrusher(void)
Returns a new BitCrusher effect.
freeBitCrusher: Option<unsafe extern "C" fn(filter: *mut BitCrusher)>
void playdate->sound->effect->bitcrusher->freeBitCrusher(BitCrusher* filter)
Frees the given effect.
setAmount: Option<unsafe extern "C" fn(filter: *mut BitCrusher, amount: c_float)>
void playdate->sound->effect->bitcrusher->setAmount(BitCrusher* filter, float amount)
Sets the amount of crushing to amount. Valid values are 0 (no effect) to 1 (quantizing output to 1-bit).
setAmountModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher, signal: *mut PDSynthSignalValue)>
void playdate->sound->effect->bitcrusher->setAmountModulator(BitCrusher* filter, PDSynthSignalValue* signal)
Sets a signal to modulate the crushing amount. Set to NULL to clear the modulator.
getAmountModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher) -> *mut PDSynthSignalValue>
PDSynthSignalValue* playdate->sound->effect->bitcrusher->getAmountModulator(BitCrusher* filter)
Returns the currently set modulator.
setUndersampling: Option<unsafe extern "C" fn(filter: *mut BitCrusher, undersampling: c_float)>
void playdate->sound->effect->bitcrusher->setUndersampling(BitCrusher* filter, float undersample)
Sets the number of samples to repeat, quantizing the input in time. A value of 0 produces no undersampling, 1 repeats every other sample, etc.
setUndersampleModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher, signal: *mut PDSynthSignalValue)>
void playdate->sound->effect->bitcrusher->setUndersampleModulator(BitCrusher* filter, PDSynthSignalValue* signal)
Sets a signal to modulate the undersampling amount. Set to NULL to clear the modulator.
getUndersampleModulator: Option<unsafe extern "C" fn(filter: *mut BitCrusher) -> *mut PDSynthSignalValue>
PDSynthSignalValue* playdate->sound->effect->bitcrusher->getUndersampleModulator(BitCrusher* filter)
Returns the currently set modulator.
Trait Implementations§
source§impl Clone for playdate_sound_effect_bitcrusher
impl Clone for playdate_sound_effect_bitcrusher
source§fn clone(&self) -> playdate_sound_effect_bitcrusher
fn clone(&self) -> playdate_sound_effect_bitcrusher
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_bitcrusher
impl Debug for playdate_sound_effect_bitcrusher
source§impl Default for playdate_sound_effect_bitcrusher
impl Default for playdate_sound_effect_bitcrusher
source§fn default() -> playdate_sound_effect_bitcrusher
fn default() -> playdate_sound_effect_bitcrusher
source§impl Hash for playdate_sound_effect_bitcrusher
impl Hash for playdate_sound_effect_bitcrusher
source§impl Ord for playdate_sound_effect_bitcrusher
impl Ord for playdate_sound_effect_bitcrusher
source§fn cmp(&self, other: &playdate_sound_effect_bitcrusher) -> Ordering
fn cmp(&self, other: &playdate_sound_effect_bitcrusher) -> 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_bitcrusher
impl PartialEq for playdate_sound_effect_bitcrusher
source§fn eq(&self, other: &playdate_sound_effect_bitcrusher) -> bool
fn eq(&self, other: &playdate_sound_effect_bitcrusher) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for playdate_sound_effect_bitcrusher
impl PartialOrd for playdate_sound_effect_bitcrusher
source§fn partial_cmp(
&self,
other: &playdate_sound_effect_bitcrusher
) -> Option<Ordering>
fn partial_cmp( &self, other: &playdate_sound_effect_bitcrusher ) -> 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_bitcrusher
impl Eq for playdate_sound_effect_bitcrusher
impl StructuralPartialEq for playdate_sound_effect_bitcrusher
Auto Trait Implementations§
impl Freeze for playdate_sound_effect_bitcrusher
impl RefUnwindSafe for playdate_sound_effect_bitcrusher
impl Send for playdate_sound_effect_bitcrusher
impl Sync for playdate_sound_effect_bitcrusher
impl Unpin for playdate_sound_effect_bitcrusher
impl UnwindSafe for playdate_sound_effect_bitcrusher
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: 32 bytes