Linux sound choppiness

Started by elias4444, November 29, 2007, 16:41:36

Previous topic - Next topic

ryanm

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

Matzon

aha! - I knew I had some code that worked with the \0 stuff - thanks for locating it :)
We might switch to openal-soft on linux for future releases

oak

Perfect, than in the future we shall have no worries with LWJGL and sound - and it is possible to let the user choose a device (will implement that in our game right away).
ove Zig !

renanse

So (only half following along) should we be looking for some kind of linux sound fix in a forthcoming lwjgl release?

Matzon

still not decided - but anyone may replace the libopenal.so we ship with the oal-soft implementation