YM2612: fix getPan on ExtCh channel 5

This commit is contained in:
tildearrow 2023-10-29 13:33:29 -05:00
parent e915c6efb9
commit 38103d9c1f

View file

@ -800,7 +800,7 @@ DivMacroInt* DivPlatformGenesisExt::getChanMacroInt(int ch) {
} }
unsigned short DivPlatformGenesisExt::getPan(int ch) { unsigned short DivPlatformGenesisExt::getPan(int ch) {
if (ch==csmChan) return 0; if (ch==4+csmChan) return 0;
if (ch>=4+extChanOffs) return DivPlatformGenesis::getPan(ch-3); if (ch>=4+extChanOffs) return DivPlatformGenesis::getPan(ch-3);
if (ch>=extChanOffs) { if (ch>=extChanOffs) {
if (extMode) { if (extMode) {