Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal
In directory sc8-pr-cvs1:/tmp/cvs-serv15807
Modified Files:
ALCTest.java ALUTTest.java EAXTest.java PlayTest.java
PlayTestMemory.java
Log Message:
fix: no more using alutInit or alutExit
Index: ALCTest.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALCTest.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALCTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ALCTest.java 21 Nov 2002 22:36:03 -0000 1.2
+++ ALCTest.java 14 Dec 2002 12:44:17 -0000 1.3
@@ -133,11 +133,7 @@
//get an enumerstion value
System.out.println("Value of ALC_MAJOR_VERSION: " + alc.getEnumValue(device, "ALC_MAJOR_VERSION"));
- //close context again
- alc.destroyContext(context);
-
- //close it
- alc.closeDevice(device);
+ alExit();
}
/**
Index: ALUTTest.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALUTTest.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALUTTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ALUTTest.java 19 Nov 2002 16:48:25 -0000 1.1
+++ ALUTTest.java 14 Dec 2002 12:44:17 -0000 1.2
@@ -67,8 +67,8 @@
int lastError;
- //initialize AL, using ALUT
- alut.init(args);
+ //initialize AL
+ alInitialize();
//create 1 buffer and 1 source
ByteBuffer buffers = ByteBuffer.allocateDirect(4);
@@ -149,8 +149,8 @@
exit(lastError);
}
- //shutdown using ALUT
- alut.exit();
+ //shutdown
+ alExit();
}
/**
Index: EAXTest.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/EAXTest.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/EAXTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- EAXTest.java 21 Nov 2002 22:36:36 -0000 1.2
+++ EAXTest.java 14 Dec 2002 12:44:17 -0000 1.3
@@ -67,9 +67,7 @@
//no errorchecking from now on, since our context is gone.
//shutdown
- alc.makeContextCurrent(null);
- alc.destroyContext(context);
- alc.closeDevice(device);
+ alExit();
System.out.println("test done.");
}
Index: PlayTest.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/PlayTest.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/PlayTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- PlayTest.java 19 Nov 2002 16:48:25 -0000 1.1
+++ PlayTest.java 14 Dec 2002 12:44:17 -0000 1.2
@@ -147,9 +147,7 @@
//no errorchecking from now on, since our context is gone.
//shutdown
- alc.makeContextCurrent(null);
- alc.destroyContext(context);
- alc.closeDevice(device);
+ alExit();
}
/**
Index: PlayTestMemory.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/PlayTestMemory.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/PlayTestMemory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- PlayTestMemory.java 19 Nov 2002 16:48:25 -0000 1.1
+++ PlayTestMemory.java 14 Dec 2002 12:44:17 -0000 1.2
@@ -159,9 +159,7 @@
//no errorchecking from now on, since our context is gone.
//shutdown
- alc.makeContextCurrent(null);
- alc.destroyContext(context);
- alc.closeDevice(device);
+ alExit();
}
/**
|