From: Brian M. <ma...@us...> - 2002-09-11 23:25:40
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/test In directory usw-pr-cvs1:/tmp/cvs-serv21415/org/lwjgl/openal/test Modified Files: EAXTest.java Log Message: fix: EAX now requires OpenAL to be initialized PRIOR to calling create Index: EAXTest.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/test/EAXTest.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/test/EAXTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- EAXTest.java 2 Sep 2002 13:09:20 -0000 1.3 +++ EAXTest.java 11 Sep 2002 23:25:35 -0000 1.4 @@ -32,6 +32,12 @@ package org.lwjgl.openal.test; import org.lwjgl.openal.eax.EAX; +import org.lwjgl.openal.eax.EAXBufferProperties; +import java.nio.IntBuffer; + +import org.lwjgl.Sys; +import org.lwjgl.openal.AL; +import org.lwjgl.openal.ALUTLoadWAVData; /** * $Id$ @@ -54,6 +60,8 @@ * Runs the actual test, using supplied arguments */ protected void execute(String[] args) { + alInitialize(); + EAX eax = new EAX(); try { eax.create(); @@ -61,7 +69,15 @@ e.printStackTrace(); return; } - System.out.println("EAX supported..."); + System.out.print("EAX supported..."); + + //no errorchecking from now on, since our context is gone. + //shutdown + alc.makeContextCurrent(null); + alc.destroyContext(context); + alc.closeDevice(device); + + System.out.println("test done."); } /** |