summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2013-01-30 14:29:38 +0100
committerXerxes Rånby <[email protected]>2013-01-30 14:29:38 +0100
commit1bc6cc4395a998440e48f45f06bf9d80cf3de6e1 (patch)
tree0aff8d5084b3e80d97bb72b2853dc0e0fca3b0e3
parent490096c7c53030170876f568ec1f0953a66fbb1d (diff)
Improve ALExtLoopbackDeviceSOFTTest to list all available OpenAL extensions.
Signed-off-by: Xerxes Rånby <[email protected]>
-rw-r--r--src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java b/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
index a782c3a..7718cff 100644
--- a/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
+++ b/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
@@ -26,12 +26,16 @@ public class ALExtLoopbackDeviceSOFTTest {
public void testAlCLoopbackDeviceSOFT() throws UnsupportedAudioFileException, IOException {
ALC alc = ALFactory.getALC();
- ALCdevice device = alc.alcOpenDevice(null);
+ ALCdevice dev = alc.alcOpenDevice(null);
+ ALCcontext context = alc.alcCreateContext(dev,null);
+ alc.alcMakeContextCurrent(context);
AL al = ALFactory.getAL();
-
- boolean have = alc.alcIsExtensionPresent(null, "ALC_SOFT_loopback");
-
- ALCdevice dev;
+
+ System.out.println("Available null device OpenAL Extensions:"+alc.alcGetString(null, alc.ALC_EXTENSIONS));
+ System.out.println("Available device OpenAL Extensions:"+alc.alcGetString(dev, alc.ALC_EXTENSIONS));
+
+ boolean have = alc.alcIsExtensionPresent(dev, "ALC_SOFT_loopback");
+
Exception ex = null;
ALExt alext = ALFactory.getALExt();
@@ -56,7 +60,6 @@ public class ALExtLoopbackDeviceSOFTTest {
assertNotNull(dev);
WAVData wd = null;
- ALCcontext context = null;
try {
wd = WAVLoader.loadFromStream(ResourceLocation.getTestStream0());