YM2612: fix one more click...

This commit is contained in:
tildearrow 2023-01-16 23:59:34 -05:00
parent 0d5c7da774
commit 0383b0c50f
1 changed files with 4 additions and 0 deletions

View File

@ -463,6 +463,10 @@ void DivPlatformGenesis::tick(bool sysTick) {
for (int i=0; i<512; i++) {
if (pendingWrites[i]!=oldWrites[i]) {
if (i==0x2b && pendingWrites[i]!=0 && !parent->song.brokenDACMode) {
if (chan[5].keyOn) chan[5].keyOn=false;
chan[5].keyOff=true;
}
immWrite(i,pendingWrites[i]&0xff);
oldWrites[i]=pendingWrites[i];
}