diff options
author | Carsten Weisse <[email protected]> | 2007-05-06 19:33:53 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2007-05-06 19:33:53 +0000 |
commit | 96081c3556bd52d31c043d904776c3c50d6dd0b9 (patch) | |
tree | f6057a984f4ce122ba01b656cb2efe4ca8cfbec2 /src | |
parent | 433749295192346510447d98ae35d3dd3038ba64 (diff) |
go back to previous version, handler is ok, but EAX class is not
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/sound/joal/JOALSoundImpl.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java index 01bdc3b..c1578cf 100644 --- a/src/jake2/sound/joal/JOALSoundImpl.java +++ b/src/jake2/sound/joal/JOALSoundImpl.java @@ -104,13 +104,18 @@ public final class JOALSoundImpl implements Sound { } private void initOpenALExtensions() { - try { - eax = EAXFactory.getEAX(); - Com.Printf("... using EAX2.0\n"); - } catch (Throwable e) { - Com.Printf("... EAX2.0 not found\n"); - eax = null; - } + 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; + } } |