aboutsummaryrefslogtreecommitdiffstats
path: root/unit_tests/src/Sound3DTest.java
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/Sound3DTest.java
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/Sound3DTest.java')
-rw-r--r--unit_tests/src/Sound3DTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/unit_tests/src/Sound3DTest.java b/unit_tests/src/Sound3DTest.java
index df697e0..7adbc50 100644
--- a/unit_tests/src/Sound3DTest.java
+++ b/unit_tests/src/Sound3DTest.java
@@ -38,6 +38,7 @@ import net.java.games.sound3d.AudioSystem3D;
import net.java.games.sound3d.Context;
import net.java.games.sound3d.Device;
import net.java.games.sound3d.Listener;
+import net.java.games.sound3d.Sound3DException;
import net.java.games.sound3d.Source;
/**
@@ -53,7 +54,12 @@ public class Sound3DTest {
}
public static void main(String[] args) {
- AudioSystem3D.init();
+ try {
+ AudioSystem3D.init();
+ } catch (Sound3DException e) {
+ e.printStackTrace();
+ return;
+ }
// create the initial context - this can be collapsed into the init.
Device device = AudioSystem3D.openDevice("DirectSound3D");