summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-21 14:57:15 +0100
committerSven Gothel <[email protected]>2014-02-21 14:57:15 +0100
commit29094cdad91594a2f5defd967aab893887f10c81 (patch)
tree3125175a2bc3082b7ebadb9d1f05edd68b9ebeed /src/test/com/jogamp
parentd199e6cdbf1fe1283bad79f68d05a9037a91863b (diff)
ALExtLoopbackDeviceSOFTTest: Remove javax.sound.sampled.UnsupportedAudioFileException dependency
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r--src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java b/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
index 222a1cc..22631cf 100644
--- a/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
+++ b/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
@@ -5,8 +5,6 @@ import static org.junit.Assert.*;
import java.io.IOException;
import java.nio.ByteBuffer;
-import javax.sound.sampled.UnsupportedAudioFileException;
-
import org.junit.Test;
import com.jogamp.openal.ALFactory;
@@ -15,6 +13,7 @@ import com.jogamp.openal.ALC;
import com.jogamp.openal.ALExt;
import com.jogamp.openal.ALCcontext;
import com.jogamp.openal.ALCdevice;
+import com.jogamp.openal.UnsupportedAudioFileException;
import com.jogamp.openal.test.resources.ResourceLocation;
import com.jogamp.openal.util.WAVData;
import com.jogamp.openal.util.WAVLoader;
@@ -23,7 +22,7 @@ public class ALExtLoopbackDeviceSOFTTest {
@Test
public void testAlCLoopbackDeviceSOFT() throws UnsupportedAudioFileException, IOException {
-
+
ALC alc = ALFactory.getALC();
ALCdevice dev = alc.alcOpenDevice(null);
ALCcontext context = alc.alcCreateContext(dev,null);
@@ -32,12 +31,12 @@ public class ALExtLoopbackDeviceSOFTTest {
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();
-
+
if (!have) {
System.out.println("No extension ALC_SOFT_loopback present");
@@ -72,7 +71,7 @@ public class ALExtLoopbackDeviceSOFTTest {
wd.freq,
0
}, 0);
-
+
boolean state = alc.alcMakeContextCurrent(context);
assertTrue(state);
} catch (Exception e) {
@@ -104,10 +103,10 @@ public class ALExtLoopbackDeviceSOFTTest {
System.out.println("end testAlCLoopbackDeviceSOFT");
}
-
+
public static void main(String args[]) throws IOException {
org.junit.runner.JUnitCore.main(ALExtLoopbackDeviceSOFTTest.class.getName());
}
-
+
}