summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/openal
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/com/jogamp/openal')
-rw-r--r--src/test/com/jogamp/openal/test/junit/ALTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/com/jogamp/openal/test/junit/ALTest.java b/src/test/com/jogamp/openal/test/junit/ALTest.java
index 33d7b0d..d669a75 100644
--- a/src/test/com/jogamp/openal/test/junit/ALTest.java
+++ b/src/test/com/jogamp/openal/test/junit/ALTest.java
@@ -13,6 +13,7 @@ import com.jogamp.openal.ALCdevice;
import com.jogamp.openal.ALFactory;
import java.io.IOException;
import java.io.InputStream;
+import java.io.BufferedInputStream;
import javax.sound.sampled.UnsupportedAudioFileException;
@@ -383,6 +384,8 @@ public class ALTest {
private WAVData loadTestWAV() throws IOException, UnsupportedAudioFileException {
InputStream resource = ResourceLocation.getInputStream(TEST_FILE, true);
- return WAVLoader.loadFromStream(resource);
+ // Add buffer for mark/reset support as required by getAudioInputStream.
+ InputStream bufferResource = new BufferedInputStream(resource);
+ return WAVLoader.loadFromStream(bufferResource);
}
}