Permalink
Browse files

Made JavaSound the default sound library

  • Loading branch information...
1 parent 8444275 commit bc228aa240779a560a413c78e88815e99883fded @kylecbrodie kylecbrodie committed Apr 17, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/com/mojang/mojam/sound/SoundPlayer.java
@@ -46,17 +46,13 @@ public SoundPlayer() {
} catch (SoundSystemException ex) {
wavPlaybackSupport = false;
}
-
- boolean isOPenAL = Options.getAsBoolean(Options.OPEN_AL, Options.VALUE_TRUE);
+ libraryType = LibraryJavaSound.class; // Java Sound
+ boolean isOPenAL = Options.getAsBoolean(Options.OPEN_AL, Options.VALUE_FALSE);
if (isOPenAL) {
boolean aLCompatible = SoundSystem.libraryCompatible(LibraryLWJGLOpenAL.class);
if (aLCompatible) {
libraryType = LibraryLWJGLOpenAL.class; // OpenAL
- } else {
- libraryType = LibraryJavaSound.class; // Java Sound
}
- } else {
- libraryType = LibraryJavaSound.class; // Java Sound
}
try {

0 comments on commit bc228aa

Please sign in to comment.