diff options
Diffstat (limited to 'unit_tests/src/Sound3DTest.java')
-rw-r--r-- | unit_tests/src/Sound3DTest.java | 8 |
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"); |