#[repr(u8)]pub enum WaveLevel {
Mute = 0,
Full = 1,
Half = 2,
Quarter = 3,
}Expand description
Wave-channel output level (NR32 bits 6-5).
Variants§
Mute = 0
Muted.
Full = 1
100%, samples used as-is.
Half = 2
50%, samples shifted right once.
Quarter = 3
25%, samples shifted right twice.
Implementations§
Trait Implementations§
impl Copy for WaveLevel
impl Eq for WaveLevel
impl StructuralPartialEq for WaveLevel
Auto Trait Implementations§
impl BankSafe for WaveLevel
impl Freeze for WaveLevel
impl RefUnwindSafe for WaveLevel
impl Send for WaveLevel
impl Sync for WaveLevel
impl Unpin for WaveLevel
impl UnsafeUnpin for WaveLevel
impl UnwindSafe for WaveLevel
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