OPL: fix 4-op muting (I think)

fixes #435
This commit is contained in:
tildearrow 2022-05-06 23:52:14 -05:00
parent 716ef56f03
commit b2953e00fe
1 changed files with 2 additions and 2 deletions

View File

@ -564,7 +564,7 @@ int DivPlatformOPL::toFreq(int freq) {
void DivPlatformOPL::muteChannel(int ch, bool mute) {
isMuted[ch]=mute;
if (ch<melodicChans) {
if (oplType<3 && ch<melodicChans) {
fm.channel[outChanMap[ch]].muted=mute;
}
int ops=(slots[3][ch]!=255 && chan[ch].state.ops==4 && oplType==3)?4:2;
@ -1246,7 +1246,7 @@ void DivPlatformOPL::reset() {
chan[i].outVol=0x3f;
}
for (int i=0; i<melodicChans; i++) {
if (oplType<3) for (int i=0; i<melodicChans; i++) {
fm.channel[outChanMap[i]].muted=isMuted[i];
}