mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
SB16: IRQ handler should send 0xd5 to pause 16-bit playback.
We were sending 0xd0 to pause 8-bit playback. Not sure if this actually makes any difference but it seems like the correct thing to do. Also update 'm_interrupted' *after* handling things.
This commit is contained in:
parent
eec9666735
commit
02c3c737f6
1 changed files with 3 additions and 3 deletions
|
@ -66,14 +66,14 @@ SB16& SB16::the()
|
|||
|
||||
void SB16::handle_irq()
|
||||
{
|
||||
m_interrupted = true;
|
||||
|
||||
// Stop sound output ready for the next block.
|
||||
dsp_write(0xd0);
|
||||
dsp_write(0xd5);
|
||||
|
||||
IO::in8(DSP_STATUS); // 8 bit interrupt
|
||||
if (m_major_version >= 4)
|
||||
IO::in8(DSP_R_ACK); // 16 bit interrupt
|
||||
|
||||
m_interrupted = true;
|
||||
}
|
||||
|
||||
void SB16::initialize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue