Small IRQ correction on ad1848/cs4231 (June 5th, 2025)

This fixes the the looping wave plays in Win95 using GUS MAX and possibly on WSS derived products.
This commit is contained in:
TC1995
2025-06-05 13:07:40 +02:00
parent 84472ae709
commit 479ca3d6b4

View File

@@ -731,9 +731,11 @@ ad1848_poll(void *priv)
if (!(ad1848->status & 0x01)) {
ad1848->status |= 0x01;
ad1848->regs[24] |= 0x10;
if (ad1848->regs[10] & 2)
picint(1 << ad1848->irq);
}
if (ad1848->regs[10] & 2)
picint(1 << ad1848->irq);
else
picintc(1 << ad1848->irq);
}
if (!(ad1848->adpcm_pos & 7)) /* ADPCM counts down every 4 bytes */