Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22415
Modified Files:
BasicTest.java
Log Message:
support for ALC_ENUMERATION_EXT using LWJGL specific method: AL.getImplementations
Index: BasicTest.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/BasicTest.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- BasicTest.java 20 Feb 2005 11:24:19 -0000 1.20
+++ BasicTest.java 2 Feb 2006 22:34:28 -0000 1.21
@@ -53,6 +53,18 @@
*/
public BasicTest() {
try {
+ String[] imps = AL.getImplementations();
+ if(imps.length > 0) {
+ System.out.println("Available devices: ");
+ for(int i=0; i<imps.length; i++) {
+ System.out.println(" " + i + ": " + imps[i]);
+ }
+ }
+ } catch (Exception e) {
+ System.out.println("Unable to query available devices: " + e.getMessage());
+ }
+
+ try {
AL.create();
} catch (Exception e) {
System.out.println("Unable to create OpenAL.\nPlease make sure that OpenAL is available on this system. Exception: " + e);
|