Namco WSG: muting

This commit is contained in:
tildearrow 2022-05-21 01:40:28 -05:00
parent bc47d1ebcd
commit c251ea2198
1 changed files with 4 additions and 4 deletions

View File

@ -163,17 +163,17 @@ void DivPlatformNamcoWSG::tick(bool sysTick) {
// update state
switch (devType) {
case 1:
if (chan[0].active) {
if (chan[0].active && !isMuted[0]) {
rWrite(0x15,chan[0].outVol);
} else {
rWrite(0x15,0);
}
if (chan[1].active) {
if (chan[1].active && !isMuted[1]) {
rWrite(0x1a,chan[1].outVol);
} else {
rWrite(0x1a,0);
}
if (chan[2].active) {
if (chan[2].active && !isMuted[2]) {
rWrite(0x1f,chan[2].outVol);
} else {
rWrite(0x1f,0);
@ -201,7 +201,7 @@ void DivPlatformNamcoWSG::tick(bool sysTick) {
break;
case 15:
for (int i=0; i<8; i++) {
if (chan[i].active) {
if (chan[i].active && !isMuted[i]) {
rWrite((i<<3)+0x03,chan[i].outVol);
} else {
rWrite((i<<3)+0x03,0);