fixed resource path issue

This commit is contained in:
Brian Matzon 2010-10-13 21:07:43 +00:00
parent 39553cba95
commit fb81ac26ec

View file

@ -290,7 +290,7 @@ public final class EFX10Test {
// Create a source and buffer audio data
final int source = AL10.alGenSources();
final int buffer = AL10.alGenBuffers();
WaveData waveFile = WaveData.create(WaveData.class.getClassLoader().getResourceAsStream("Footsteps.wav"));
WaveData waveFile = WaveData.create("Footsteps.wav");
if (waveFile == null) {
System.out.println("Failed to load Footsteps.wav! Skipping playback test.");
AL.destroy();