|
From: <ma...@us...> - 2007-04-19 22:44:09
|
Revision: 2788
http://svn.sourceforge.net/java-game-lib/?rev=2788&view=rev
Author: matzon
Date: 2007-04-19 15:44:07 -0700 (Thu, 19 Apr 2007)
Log Message:
-----------
output capture devices
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/test/openal/ALCCaptureTest.java
Modified: trunk/LWJGL/src/java/org/lwjgl/test/openal/ALCCaptureTest.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/test/openal/ALCCaptureTest.java 2007-04-19 22:43:38 UTC (rev 2787)
+++ trunk/LWJGL/src/java/org/lwjgl/test/openal/ALCCaptureTest.java 2007-04-19 22:44:07 UTC (rev 2788)
@@ -80,16 +80,16 @@
}
// get list of devices
- String captureDevices = ALC10.alcGetString(null, ALC11.ALC_CAPTURE_DEVICE_SPECIFIER);
- System.out.println("captureDevices: " + captureDevices);
-
+ String[] captureDevices = ALC10.alcGetString(null, ALC11.ALC_CAPTURE_DEVICE_SPECIFIER).split("\0");
+ System.out.println("Available Capture Devices: ");
+ for(int i=0; i<captureDevices.length; i++) {
+ System.out.println(i + ": " + captureDevices[i]);
+ }
String defaultRecorder = ALC10.alcGetString(AL.getDevice(), ALC11.ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER);
System.out.println("Default capture device: " + defaultRecorder);
ALCdevice device = ALC11.alcCaptureOpenDevice(null, FREQ, FMT, SAMPS);
-
-
if(device != null) {
// record some sound
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|