aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2007-05-06 17:56:36 +0000
committerCarsten Weisse <[email protected]>2007-05-06 17:56:36 +0000
commit433749295192346510447d98ae35d3dd3038ba64 (patch)
tree7d47d312c2a45837cdd7484e10c51b516206af96
parent1f3adfe65e54e16d9d6fc6326d278c549c6115b2 (diff)
try to use EAX instead of checking extension Strings
-rw-r--r--src/jake2/sound/joal/JOALSoundImpl.java19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java
index c1578cf..01bdc3b 100644
--- a/src/jake2/sound/joal/JOALSoundImpl.java
+++ b/src/jake2/sound/joal/JOALSoundImpl.java
@@ -104,18 +104,13 @@ public final class JOALSoundImpl implements Sound {
}
private void initOpenALExtensions() {
- if (al.alIsExtensionPresent("EAX2.0")) {
- try {
- eax = EAXFactory.getEAX();
- Com.Printf("... using EAX2.0\n");
- } catch (Throwable e) {
- Com.Printf("... EAX2.0 not initialized\n");
- eax = null;
- }
- } else {
- Com.Printf("... EAX2.0 not found\n");
- eax = null;
- }
+ try {
+ eax = EAXFactory.getEAX();
+ Com.Printf("... using EAX2.0\n");
+ } catch (Throwable e) {
+ Com.Printf("... EAX2.0 not found\n");
+ eax = null;
+ }
}