aboutsummaryrefslogtreecommitdiffstats
path: root/unit_tests/src/net/java/games/joal
diff options
context:
space:
mode:
authorathomas <[email protected]>2003-11-23 01:39:59 +0000
committerathomas <[email protected]>2003-11-23 01:39:59 +0000
commit958b4a62bbfa639ad27756037049c9db3e7d3bf2 (patch)
treefc2bc580070c584a799c32e4509980e99309fb64 /unit_tests/src/net/java/games/joal
parentebe0f9a9ea29dd09332cafe65286f563bb08f6d6 (diff)
Several changes, uses newest lwjgl extal, throws exceptions from native code if AL doesn't load correctly and creates Context and Device objects in Native code.
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@69 03bf7f67-59de-4072-a415-9a990d468a3f
Diffstat (limited to 'unit_tests/src/net/java/games/joal')
-rw-r--r--unit_tests/src/net/java/games/joal/ALTest.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/unit_tests/src/net/java/games/joal/ALTest.java b/unit_tests/src/net/java/games/joal/ALTest.java
index a30068c..51bdf87 100644
--- a/unit_tests/src/net/java/games/joal/ALTest.java
+++ b/unit_tests/src/net/java/games/joal/ALTest.java
@@ -36,12 +36,16 @@ public class ALTest extends TestCase {
}
public void setUp() {
- ALFactory.initialize();
- al = ALFactory.getAL();
- alc = ALFactory.getALC();
- device = alc.alcOpenDevice("DirectSound3D");
- context = alc.alcCreateContext(device, null);
- alc.alcMakeContextCurrent(context);
+ try {
+ ALFactory.initialize();
+ al = ALFactory.getAL();
+ alc = ALFactory.getALC();
+ device = alc.alcOpenDevice("DirectSound3D");
+ context = alc.alcCreateContext(device, null);
+ alc.alcMakeContextCurrent(context);
+ } catch (OpenALException e) {
+ e.printStackTrace();
+ }
}
public void tearDown() {