1
0
Fork 0

Clear Soundblaster interrupt if needed. Fixes sound detection in Xenoball.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3521
This commit is contained in:
Ralf Grillenberger 2010-01-01 21:45:12 +00:00
parent 1c5f8442c7
commit 8021ebdb6c

View file

@ -1368,7 +1368,10 @@ static Bitu read_sb(Bitu port,Bitu /*iolen*/) {
return DSP_ReadData();
case DSP_READ_STATUS:
//TODO See for high speed dma :)
sb.irq.pending_8bit=false;
if (sb.irq.pending_8bit) {
sb.irq.pending_8bit=false;
PIC_DeActivateIRQ(sb.hw.irq);
}
if (sb.dsp.out.used) return 0xff;
else return 0x7f;
case DSP_ACK_16BIT: