#![allow(dead_code)]
pub struct SoundChannel {
}
pub struct Sound {
pub channels: [SoundChannel; 4],
}
impl SoundChannel {
pub fn new() -> Self {
SoundChannel {
}
}
pub fn step(&mut self) {
}
}
impl Sound {
pub fn new() -> Self {
Sound {
channels: [
SoundChannel::new(),
SoundChannel::new(),
SoundChannel::new(),
SoundChannel::new(),
],
}
}
pub fn step(&mut self) {
for channel in &mut self.channels {
channel.step();
}
}
pub fn read_register(&self, _addr: u16) -> u8 {
0
}
pub fn write_register(&mut self, _addr: u16, _value: u8) {
}
}