summaryrefslogtreecommitdiffstats
path: root/src/java/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/net')
-rw-r--r--src/java/net/java/games/joal/ALCImpl.java3
-rw-r--r--src/java/net/java/games/joal/util/ALut.java5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/java/net/java/games/joal/ALCImpl.java b/src/java/net/java/games/joal/ALCImpl.java
index 3edfd7e..a2ce1e8 100644
--- a/src/java/net/java/games/joal/ALCImpl.java
+++ b/src/java/net/java/games/joal/ALCImpl.java
@@ -53,7 +53,8 @@ final class ALCImpl implements ALC {
Device result = null;
int pointer = openDeviceNative(deviceName);
if(pointer != 0) {
- result = new Device(openDeviceNative(deviceName));
+ System.out.println("Device Pointer = " + pointer);
+ result = new Device(pointer);
}
return result;
}
diff --git a/src/java/net/java/games/joal/util/ALut.java b/src/java/net/java/games/joal/util/ALut.java
index 7f0772f..5bb13f9 100644
--- a/src/java/net/java/games/joal/util/ALut.java
+++ b/src/java/net/java/games/joal/util/ALut.java
@@ -55,6 +55,7 @@ public final class ALut {
private ALut() { }
public static void alutInit() {
+ System.out.println("Entering alutInit()");
ALFactory.initialize();
alc = ALFactory.getALC();
String deviceName = null;
@@ -67,8 +68,9 @@ public final class ALut {
*/
ALC.Context context;
ALC.Device device;
-
+ System.out.println("In alutInit(): Device Name = " + deviceName);
device = alc.alcOpenDevice(deviceName);
+ System.out.println("In alutInit(): Device = " + device);
context = alc.alcCreateContext(device, null);
alc.alcMakeContextCurrent(context);
/*
@@ -82,6 +84,7 @@ public final class ALut {
+ "for the inconvenience.");
}
*/
+ System.out.println("Exiting alutInit()");
}
public static void alutLoadWAVFile(