diff options
author | Xerxes Rånby <[email protected]> | 2012-10-21 17:40:04 +0200 |
---|---|---|
committer | Xerxes Rånby <[email protected]> | 2012-10-21 17:40:04 +0200 |
commit | ecb2c8460a308995313263ab2907c877f675581e (patch) | |
tree | 96dd9d03f72ece985ad70dc745e80046b5854580 | |
parent | 739238b430e0a10b32c478c03de4b0c6164a831c (diff) |
Enable use of jsound +set s_impl jsound
-rw-r--r-- | src/jake2/sound/S.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/jake2/sound/S.java b/src/jake2/sound/S.java index 90b178c..515635d 100644 --- a/src/jake2/sound/S.java +++ b/src/jake2/sound/S.java @@ -64,7 +64,14 @@ public class S { // ignore the lwjgl driver if runtime not in classpath Com.DPrintf("could not init lwjgl sound driver class."); } - + + try { + Class.forName("jake2.sound.jsound.JSoundImpl"); + } catch (Throwable e) { + // ignore the jsound driver if runtime not in classpath + Com.DPrintf("could not init jsound sound driver class."); + } + // prefered driver try { Class.forName("com.jogamp.openal.AL"); @@ -234,4 +241,4 @@ public class S { { return 44100; } -}
\ No newline at end of file +} |