fix: now using ding.wav 10 times, instead of 10 different wave files

This commit is contained in:
Brian Matzon 2002-12-22 21:43:07 +00:00
parent 31f8dfd08a
commit e72a5e1545
1 changed files with 2 additions and 4 deletions

View File

@ -101,11 +101,8 @@ public class StressTest extends BasicTest {
private void loadSamples() throws Exception { private void loadSamples() throws Exception {
al.getError(); al.getError();
WaveData data; WaveData data = WaveData.create("ding.wav");
for (int i = 1; i <= 10; i++) { for (int i = 1; i <= 10; i++) {
data = WaveData.create(i + ".wav");
al.bufferData( al.bufferData(
buffers.get(i - 1), buffers.get(i - 1),
data.format, data.format,
@ -120,6 +117,7 @@ public class StressTest extends BasicTest {
alExit(); alExit();
} }
} }
data.dispose();
} }
public void runTest() { public void runTest() {