aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorathomas <[email protected]>2003-11-17 19:02:38 +0000
committerathomas <[email protected]>2003-11-17 19:02:38 +0000
commit98073d1171b6cf24eb5e2b5e0b922e127a804be0 (patch)
treefbaca1d5227e3b0d5221f4043c087f5895c43b8b /src
parent382448068fa0f6c16424c7c4108e9f8e571a2c30 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/java/net/java/games/joal/util/ALut.java4
1 files changed, 4 insertions, 0 deletions
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(