summaryrefslogtreecommitdiffstats
path: root/make/joal-alc-impl-CustomJavaCode.java
diff options
context:
space:
mode:
authorkbr <[email protected]>2007-04-08 16:41:06 +0000
committerkbr <[email protected]>2007-04-08 16:41:06 +0000
commit1c505633e784a5ec3878b152fe6890a03c700304 (patch)
treea2d6728c28d3f78c6d7ecfb3d9d1739fd77018b8 /make/joal-alc-impl-CustomJavaCode.java
parentc8d51b53141b76e7781a73b8912894a62b3fc975 (diff)
Added alcGetCaptureDeviceSpecifiers() based on feedback on javagaming.org forums
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@489 03bf7f67-59de-4072-a415-9a990d468a3f
Diffstat (limited to 'make/joal-alc-impl-CustomJavaCode.java')
-rwxr-xr-xmake/joal-alc-impl-CustomJavaCode.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/make/joal-alc-impl-CustomJavaCode.java b/make/joal-alc-impl-CustomJavaCode.java
index a2f23c9..a9ec6ee 100755
--- a/make/joal-alc-impl-CustomJavaCode.java
+++ b/make/joal-alc-impl-CustomJavaCode.java
@@ -19,7 +19,17 @@ public java.lang.String alcGetString(ALCdevice device, int param) {
/** Fetches the names of the available ALC device specifiers.
Equivalent to the C call alcGetString(NULL, ALC_DEVICE_SPECIFIER). */
public java.lang.String[] alcGetDeviceSpecifiers() {
- ByteBuffer buf = alcGetStringImpl(null, ALC_DEVICE_SPECIFIER);
+ return getDoubleNullTerminatedString(ALC_DEVICE_SPECIFIER);
+}
+
+/** Fetches the names of the available ALC capture device specifiers.
+ Equivalent to the C call alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER). */
+public java.lang.String[] alcGetCaptureDeviceSpecifiers() {
+ return getDoubleNullTerminatedString(ALC_CAPTURE_DEVICE_SPECIFIER);
+}
+
+private java.lang.String[] getDoubleNullTerminatedString(int which) {
+ ByteBuffer buf = alcGetStringImpl(null, which);
if (buf == null) {
return null;
}