pub enum Event {
Configure {
voice: u8,
addr: u32,
rate_hz: u32,
looped: bool,
pitch_q12: u16,
},
Volume {
voice: u8,
left: i16,
right: i16,
},
Pitch {
voice: u8,
pitch_q12: u16,
},
KeyOn(u32),
KeyOff(u32),
}Variants§
Configure
Fields
§
voice: u8Voice number.
§
addr: u32Byte offset of the sample in SPU RAM.
§
rate_hz: u32The rate the sample was cooked at.
§
looped: boolHardware-loop setup rather than one-shot setup.
§
pitch_q12: u16Pitch multiplier, 4096 = as cooked.
Volume
Pitch
KeyOn(u32)
Hw::key_on with this voice mask.
KeyOff(u32)
Hw::key_off with this voice mask.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)