From 98073d1171b6cf24eb5e2b5e0b922e127a804be0 Mon Sep 17 00:00:00 2001 From: athomas Date: Mon, 17 Nov 2003 19:02:38 +0000 Subject: Submitted by: Athomas Goldberg modified ALut to use alcOpenDevice(null) rather than alcOpenDevice("DirectSound3D") by default. Supposedly this will result in the default system device being used, but further testing needs to happen to confirm this. git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@57 03bf7f67-59de-4072-a415-9a990d468a3f --- src/java/net/java/games/joal/util/ALut.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/java/net') diff --git a/src/java/net/java/games/joal/util/ALut.java b/src/java/net/java/games/joal/util/ALut.java index 52261e1..7f0772f 100644 --- a/src/java/net/java/games/joal/util/ALut.java +++ b/src/java/net/java/games/joal/util/ALut.java @@ -58,17 +58,20 @@ public final class ALut { ALFactory.initialize(); alc = ALFactory.getALC(); String deviceName = null; + /* String os = System.getProperty("os.name"); if (os.startsWith("Windows")) { deviceName = "DirectSound3D"; } if (deviceName != null) { + */ ALC.Context context; ALC.Device device; device = alc.alcOpenDevice(deviceName); context = alc.alcCreateContext(device, null); alc.alcMakeContextCurrent(context); + /* } else { System.out.println( "alutInit does not currently support " @@ -78,6 +81,7 @@ public final class ALut { + "using the ALC functions for the time being. We apologize " + "for the inconvenience."); } + */ } public static void alutLoadWAVFile( -- cgit v1.2.3