POKEY: audc is set for wrong channel when channels 3 & 4 are paired

This commit is contained in:
Waldemar Pawlaszek 2023-01-07 18:51:55 +01:00
parent e75413c0c7
commit 8e009509db
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ void DivPlatformPOKEY::tick(bool sysTick) {
chan[i].ctlChanged=false;
if ((i==1 && audctl&16) || (i==3 && audctl&8)) {
// ignore - channel is paired
} else if ((i==0 && audctl&16) || (i==0 && audctl&8)) {
} else if ((i==0 && audctl&16) || (i==2 && audctl&8)) {
rWrite(1+(i<<1),0);
rWrite(3+(i<<1),val);
} else {