Update of /cvsroot/jake2/jake2/src/jake2/sound/joal
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv19843/src/jake2/sound/joal
Modified Files:
JOALSoundImpl.java
Log Message:
go back to previous version, handler is ok, but EAX class is not
Index: JOALSoundImpl.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/sound/joal/JOALSoundImpl.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** JOALSoundImpl.java 6 May 2007 17:56:36 -0000 1.25
--- JOALSoundImpl.java 6 May 2007 19:33:53 -0000 1.26
***************
*** 105,115 ****
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;
! }
}
--- 105,120 ----
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;
! }
}
|