Brilliant stuff, that library works like a charm! Cheers!
As to the device enumeration stuff - the openal test classes do this:
AL.create();
System.out.println( "Default device: " + ALC10.alcGetString( null, ALC10.ALC_DEFAULT_DEVICE_SPECIFIER ) );
if( ALC10.alcIsExtensionPresent( null, "ALC_ENUMERATION_EXT" ) )
{
String[] devices = ALC10.alcGetString( null, ALC10.ALC_DEVICE_SPECIFIER ).split( "\0" );
System.out.println( "Available devices: " );
for( int i = 0; i < devices.length; i++ )
{
System.out.println( i + ": " + devices[ i ] );
}
}
giving
Default device: ALSA Software on default
Available devices:
0: ALSA Software on default
1: ALSA Software on Intel ICH6
2: OSS Software
3: Wave File Writer