First audio buffer refill interrupt should play from buffer 0

This commit is contained in:
Ry 2022-07-27 14:24:05 -07:00
parent d2d05f2d76
commit 8e4f2bc114

View File

@ -174,7 +174,7 @@ impl Bus {
0x80000600 => { // audio port 0x80000600 => { // audio port
let mut audio_lock = self.audio.lock().unwrap(); let mut audio_lock = self.audio.lock().unwrap();
audio_lock.playing = word != 0; audio_lock.playing = word != 0;
audio_lock.current_buffer_is_0 = true; audio_lock.current_buffer_is_0 = false; // the first buffer refill interrupt will invert this to true
} }
0x80001000..=0x80005003 => { // disk controller port 0x80001000..=0x80005003 => { // disk controller port
let id = port as u8; let id = port as u8;