diff options
author | Carsten Weisse <[email protected]> | 2006-11-23 14:29:42 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-11-23 14:29:42 +0000 |
commit | aa012c424d5bca2d64333fd1fc9aeb32248f9b8e (patch) | |
tree | 8200ecb7c5f0c01791fd24603c07e5c9aee69dcb | |
parent | 444fdd2e16134bffce534fa46588fa190bb03747 (diff) |
use a more stable EAX extension handling
-rw-r--r-- | src/jake2/sound/joal/JOALSoundImpl.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java index 0b82a1d..293bc53 100644 --- a/src/jake2/sound/joal/JOALSoundImpl.java +++ b/src/jake2/sound/joal/JOALSoundImpl.java @@ -2,7 +2,7 @@ * JOALSoundImpl.java * Copyright (C) 2004 * - * $Id: JOALSoundImpl.java,v 1.16 2006-10-24 22:51:20 cawe Exp $ + * $Id: JOALSoundImpl.java,v 1.17 2006-11-23 14:29:42 cawe Exp $ */ package jake2.sound.joal; @@ -122,8 +122,13 @@ public final class JOALSoundImpl implements Sound { private void initOpenALExtensions() { if (al.alIsExtensionPresent("EAX2.0")) { - Com.Printf("... using EAX2.0\n"); - eax = EAXFactory.getEAX(); + try { + eax = EAXFactory.getEAX(); + Com.Printf("... using EAX2.0\n"); + } catch (Throwable e) { + Com.Printf("... EAX2.0 not found\n"); + eax = null; + } } else { Com.Printf("... EAX2.0 not found\n"); eax = null; |