Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal
In directory sc8-pr-cvs1:/tmp/cvs-serv23495
Modified Files:
StressTest.java
Log Message:
fix: now using ding.wav 10 times, instead of 10 different wave files
Index: StressTest.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/StressTest.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/StressTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- StressTest.java 21 Dec 2002 12:37:20 -0000 1.2
+++ StressTest.java 22 Dec 2002 21:43:07 -0000 1.3
@@ -101,11 +101,8 @@
private void loadSamples() throws Exception {
al.getError();
- WaveData data;
+ WaveData data = WaveData.create("ding.wav");
for (int i = 1; i <= 10; i++) {
-
- data = WaveData.create(i + ".wav");
-
al.bufferData(
buffers.get(i - 1),
data.format,
@@ -120,6 +117,7 @@
alExit();
}
}
+ data.dispose();
}
public void runTest() {
|