summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-23 06:30:30 -0700
committerSven Gothel <[email protected]>2012-10-23 06:30:30 -0700
commite7cd1172e44b50049c6dc0bd45d3f9d73f7fe23d (patch)
treeeca07105f790bbbe3e5efb603b79a97eb012c1ab /src/test
parent632aa409c4368cd2718103123ac3ed6d1c175c61 (diff)
parent6ca140a1e24b41d5084bb1acf2f79d7c26f6145c (diff)
Merge pull request #1 from xranby/mark_resetv2.0-rc11
Fix testAlBufferDataintintByteBufferintint ERROR java.io.IOException:
Diffstat (limited to 'src/test')
-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);
}
}