aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/opl/nuked.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/softsynth/opl/nuked.cpp')
-rw-r--r--audio/softsynth/opl/nuked.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/softsynth/opl/nuked.cpp b/audio/softsynth/opl/nuked.cpp
index 273cbdfa18..ce81926ae6 100644
--- a/audio/softsynth/opl/nuked.cpp
+++ b/audio/softsynth/opl/nuked.cpp
@@ -403,6 +403,8 @@ static void OPL3_EnvelopeCalc(opl3_slot *slot)
case envelope_gen_num_release:
reg_rate = slot->reg_rr;
break;
+ default:
+ break;
}
}
slot->pg_reset = reset;
@@ -498,6 +500,8 @@ static void OPL3_EnvelopeCalc(opl3_slot *slot)
eg_inc = 1 << (shift - 1);
}
break;
+ default:
+ break;
}
slot->eg_rout = (eg_rout + eg_inc) & 0x1ff;
// Key off
@@ -845,6 +849,8 @@ static void OPL3_ChannelSetupAlg(opl3_channel *channel)
channel->slots[0]->mod = &channel->slots[0]->fbmod;
channel->slots[1]->mod = &channel->chip->zeromod;
break;
+ default:
+ break;
}
return;
}
@@ -900,6 +906,8 @@ static void OPL3_ChannelSetupAlg(opl3_channel *channel)
channel->out[2] = &channel->slots[1]->out;
channel->out[3] = &channel->chip->zeromod;
break;
+ default:
+ break;
}
}
else
@@ -922,6 +930,8 @@ static void OPL3_ChannelSetupAlg(opl3_channel *channel)
channel->out[2] = &channel->chip->zeromod;
channel->out[3] = &channel->chip->zeromod;
break;
+ default:
+ break;
}
}
}
@@ -1262,6 +1272,8 @@ void OPL3_WriteReg(opl3_chip *chip, Bit16u reg, Bit8u v)
case 0x05:
chip->newm = v & 0x01;
break;
+ default:
+ break;
}
}
else
@@ -1271,6 +1283,8 @@ void OPL3_WriteReg(opl3_chip *chip, Bit16u reg, Bit8u v)
case 0x08:
chip->nts = (v >> 6) & 0x01;
break;
+ default:
+ break;
}
}
break;
@@ -1341,6 +1355,8 @@ void OPL3_WriteReg(opl3_chip *chip, Bit16u reg, Bit8u v)
OPL3_ChannelWriteC0(&chip->channel[9 * high + (regm & 0x0f)], v);
}
break;
+ default:
+ break;
}
}
@@ -1424,6 +1440,8 @@ void OPL::write(int port, int val) {
dualWrite(1, address[1], val);
}
break;
+ default:
+ break;
}
} else {
switch (_type) {
@@ -1444,6 +1462,8 @@ void OPL::write(int port, int val) {
case Config::kOpl3:
address[0] = (val & 0xff) | ((port << 7) & 0x100);
break;
+ default:
+ break;
}
}
}