pub struct MapperFrameEvents {
pub quarter: bool,
pub half: bool,
}Expand description
APU frame-counter event mask fanned out to the mapper, used by on-cart audio extensions (MMC5, FDS, …) whose internal envelopes / length counters share the CPU’s frame-counter clocks.
The bus calls Mapper::notify_frame_event once per CPU cycle, passing
the events the APU’s frame counter fired on the same cycle. For mappers
without on-cart audio (or with audio that doesn’t use envelopes / length
counters, like VRC6) the default no-op impl is used.
The struct shape matches rustynes_apu::frame_counter::FrameEvents 1:1; the
duplication is deliberate — rustynes-mappers does not depend on rustynes-apu,
and the bus is responsible for translating between the two types.
Fields§
§quarter: boolQuarter-frame: clock envelopes.
half: boolHalf-frame: clock length counters (and sweeps, for 2A03 — but MMC5 pulses have no sweep unit).
Trait Implementations§
Source§impl Clone for MapperFrameEvents
impl Clone for MapperFrameEvents
Source§fn clone(&self) -> MapperFrameEvents
fn clone(&self) -> MapperFrameEvents
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more