YM2612: fix DAC mute not respecting queue limits

This commit is contained in:
tildearrow 2023-07-08 16:19:50 -05:00
parent 8be2f0adc8
commit 2786b307e3
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,9 @@ void DivPlatformGenesis::processDAC(int iRate) {
chan[5].dacReady=false;
}
} else {
urgentWrite(0x2a,0x80);
if (chan[5].dacReady && writes.size()<16) {
urgentWrite(0x2a,0x80);
}
}
chan[5].dacPos++;
if (!chan[5].dacDirection && (s->isLoopable() && chan[5].dacPos>=(unsigned int)s->loopEnd)) {