pub trait AudioBus {
// Required method
fn ai_dma_read_u32(&self, addr: u32) -> u32;
// Provided method
fn raise_ai_interrupt(&mut self) { ... }
}Expand description
The narrow bus the AI sees (RustyNES’s ApuBus analog): fetch a DMA sample
word from RDRAM and raise the AI interrupt when a buffer starts.
Required Methods§
Sourcefn ai_dma_read_u32(&self, addr: u32) -> u32
fn ai_dma_read_u32(&self, addr: u32) -> u32
Fetch a big-endian 32-bit sample word (two 16-bit L/R samples) from the
AI DMA buffer in RDRAM at addr.
Provided Methods§
Sourcefn raise_ai_interrupt(&mut self)
fn raise_ai_interrupt(&mut self)
Raise the AI interrupt on the MI (a queued buffer became active). Default no-op so a non-interrupt bus can still drive the DAC.