summaryrefslogtreecommitdiffstats
path: root/unit_tests/src/net/java/games/joal
diff options
context:
space:
mode:
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() {