YM2612: fix DAC mute not respecting queue limits
This commit is contained in:
parent
8be2f0adc8
commit
2786b307e3
|
@ -123,8 +123,10 @@ void DivPlatformGenesis::processDAC(int iRate) {
|
||||||
chan[5].dacReady=false;
|
chan[5].dacReady=false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (chan[5].dacReady && writes.size()<16) {
|
||||||
urgentWrite(0x2a,0x80);
|
urgentWrite(0x2a,0x80);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
chan[5].dacPos++;
|
chan[5].dacPos++;
|
||||||
if (!chan[5].dacDirection && (s->isLoopable() && chan[5].dacPos>=(unsigned int)s->loopEnd)) {
|
if (!chan[5].dacDirection && (s->isLoopable() && chan[5].dacPos>=(unsigned int)s->loopEnd)) {
|
||||||
chan[5].dacPos=s->loopStart;
|
chan[5].dacPos=s->loopStart;
|
||||||
|
|
Loading…
Reference in New Issue