src/share/classes/com/sun/media/sound/SoftEnvelopeGenerator.java

Print this page

        

@@ -116,10 +116,11 @@
             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,10 +169,11 @@
                 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];