File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/main/java/net/raphimc/noteblocktool/frames Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -250,11 +250,19 @@ private void initComponents() {
250250 }
251251
252252 private boolean initSoundSystem () {
253- int currentIndex = - 1 ;
253+ final int currentIndex ;
254254 if (this .soundSystem instanceof OpenALSoundSystem ) {
255255 currentIndex = 0 ;
256- } else if (this .soundSystem instanceof JavaxSoundSystem ) {
256+ } else if (this .soundSystem instanceof BassSoundSystem ) {
257257 currentIndex = 1 ;
258+ } else if (this .soundSystem instanceof MultithreadedJavaxSoundSystem ) {
259+ currentIndex = 3 ;
260+ } else if (this .soundSystem instanceof JavaxSoundSystem ) {
261+ currentIndex = 2 ;
262+ } else if (this .soundSystem == null ) {
263+ currentIndex = -1 ;
264+ } else {
265+ throw new UnsupportedOperationException (UNAVAILABLE_MESSAGE );
258266 }
259267
260268 try {
You can’t perform that action at this time.
0 commit comments