pub struct Noise {
pub envelope: Envelope,
pub length: LengthCounter,
/* private fields */
}Expand description
Noise channel state.
Fields§
§envelope: EnvelopeEnvelope generator.
length: LengthCounterLength counter.
Implementations§
Source§impl Noise
impl Noise
Sourcepub fn write_ctrl(&mut self, value: u8)
pub fn write_ctrl(&mut self, value: u8)
$400C write.
Sourcepub fn write_period(&mut self, value: u8)
pub fn write_period(&mut self, value: u8)
$400E write: mode + period index.
Sourcepub fn write_length(&mut self, value: u8)
pub fn write_length(&mut self, value: u8)
$400F write: length load + envelope restart.
Sourcepub fn clock_timer(&mut self)
pub fn clock_timer(&mut self)
One APU clock.
Sourcepub fn clock_half_frame(&mut self)
pub fn clock_half_frame(&mut self)
Half-frame clock: length.
Sourcepub fn clock_quarter_frame(&mut self)
pub fn clock_quarter_frame(&mut self)
Quarter-frame clock: envelope.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Noise
impl RefUnwindSafe for Noise
impl Send for Noise
impl Sync for Noise
impl Unpin for Noise
impl UnsafeUnpin for Noise
impl UnwindSafe for Noise
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