aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2013-04-26 12:41:56 +0200
committerXerxes Rånby <[email protected]>2013-04-26 12:41:56 +0200
commita320fb0d52949af8fef4367b31571f46a3c9870d (patch)
treeb51d0a80f681cc4dac8c67ae46e09bc38ceeed91
parentd20f4dca1af4e2bbd4143b75f7a32def44f4c83c (diff)
parentecb2c8460a308995313263ab2907c877f675581e (diff)
Merge remote-tracking branch 'xranby-github/jsound'
-rw-r--r--src/jake2/sound/S.java11
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
+}