OPL: fix chan osc in 4-op mode

This commit is contained in:
tildearrow 2022-09-22 00:01:23 -05:00
parent 7bb7fa0c24
commit 32cdd81919
1 changed files with 9 additions and 0 deletions

View File

@ -1421,6 +1421,15 @@ DivMacroInt* DivPlatformOPL::getChanMacroInt(int ch) {
DivDispatchOscBuffer* DivPlatformOPL::getOscBuffer(int ch) {
if (ch>=18) return NULL;
if (oplType==3 && ch<12) {
if (chan[ch&(~1)].fourOp) {
if (ch&1) {
return oscBuf[ch-1];
} else {
return oscBuf[ch+1];
}
}
}
return oscBuf[ch];
}