From 96081c3556bd52d31c043d904776c3c50d6dd0b9 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sun, 6 May 2007 19:33:53 +0000 Subject: go back to previous version, handler is ok, but EAX class is not --- src/jake2/sound/joal/JOALSoundImpl.java | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src') 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; + } } -- cgit v1.2.3