#[repr(u8)]pub enum EffectKind {
Tone = 0,
Wavetable = 1,
Fm = 2,
Pcm8 = 3,
Adpcm = 4,
SigmaDeltaBits = 5,
}Expand description
Effect payload type (matches bank directory kind byte).
Variants§
Tone = 0
Tier A: tone oscillator (param0 = Hz, param1 = duration ms).
Wavetable = 1
Tier A: wavetable loop (param0 = Hz).
Fm = 2
Tier A: two-operator FM (param0 = carrier Hz, param1 = mod ratio ×100).
Pcm8 = 3
Tier B: raw 8-bit PCM.
Adpcm = 4
Tier B: IMA ADPCM (4-bit) with 4-byte header predictor/index.
SigmaDeltaBits = 5
Tier C: packed 1-bit sigma-delta bitstream (MSB first).
Implementations§
Trait Implementations§
Source§impl Clone for EffectKind
impl Clone for EffectKind
Source§fn clone(&self) -> EffectKind
fn clone(&self) -> EffectKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EffectKind
Source§impl Debug for EffectKind
impl Debug for EffectKind
impl Eq for EffectKind
Source§impl PartialEq for EffectKind
impl PartialEq for EffectKind
impl StructuralPartialEq for EffectKind
Auto Trait Implementations§
impl Freeze for EffectKind
impl RefUnwindSafe for EffectKind
impl Send for EffectKind
impl Sync for EffectKind
impl Unpin for EffectKind
impl UnsafeUnpin for EffectKind
impl UnwindSafe for EffectKind
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