equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
116 return release2[instance]; |
116 return release2[instance]; |
117 |
117 |
118 return null; |
118 return null; |
119 } |
119 } |
120 |
120 |
|
121 @SuppressWarnings("fallthrough") |
121 public void processControlLogic() { |
122 public void processControlLogic() { |
122 for (int i = 0; i < used_count; i++) { |
123 for (int i = 0; i < used_count; i++) { |
123 |
124 |
124 if (stage[i] == EG_END) |
125 if (stage[i] == EG_END) |
125 continue; |
126 continue; |
168 stage[i] = EG_DELAY; |
169 stage[i] = EG_DELAY; |
169 stage_ix[i] = (int)(Math.pow(2, |
170 stage_ix[i] = (int)(Math.pow(2, |
170 this.delay[i][0] / 1200.0) / control_time); |
171 this.delay[i][0] / 1200.0) / control_time); |
171 if (stage_ix[i] < 0) |
172 if (stage_ix[i] < 0) |
172 stage_ix[i] = 0; |
173 stage_ix[i] = 0; |
|
174 // Fallthrough |
173 case EG_DELAY: |
175 case EG_DELAY: |
174 if (stage_ix[i] == 0) { |
176 if (stage_ix[i] == 0) { |
175 double attack = this.attack[i][0]; |
177 double attack = this.attack[i][0]; |
176 double attack2 = this.attack2[i][0]; |
178 double attack2 = this.attack2[i][0]; |
177 |
179 |