First audio buffer refill interrupt should play from buffer 0
This commit is contained in:
parent
d2d05f2d76
commit
8e4f2bc114
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user