OPL: fix chan osc in 4-op mode
This commit is contained in:
parent
7bb7fa0c24
commit
32cdd81919
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue