src/share/classes/com/sun/media/sound/SoftEnvelopeGenerator.java
Print this page
*** 116,125 ****
--- 116,126 ----
return release2[instance];
return null;
}
+ @SuppressWarnings("fallthrough")
public void processControlLogic() {
for (int i = 0; i < used_count; i++) {
if (stage[i] == EG_END)
continue;
*** 168,177 ****
--- 169,179 ----
stage[i] = EG_DELAY;
stage_ix[i] = (int)(Math.pow(2,
this.delay[i][0] / 1200.0) / control_time);
if (stage_ix[i] < 0)
stage_ix[i] = 0;
+ // Fallthrough okay?
case EG_DELAY:
if (stage_ix[i] == 0) {
double attack = this.attack[i][0];
double attack2 = this.attack2[i][0];