Hello Guest

Linux sound choppiness

  • 19 Replies
  • 25452 Views
*

Offline ryanm

  • *
  • 44
Re: Linux sound choppiness
« Reply #15 on: March 07, 2008, 11:00:00 »
Brilliant stuff, that library works like a charm! Cheers!

As to the device enumeration stuff - the openal test classes do this:
Code: [Select]
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
Code: [Select]
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

*

Offline Matzon

  • *****
  • 2242
Re: Linux sound choppiness
« Reply #16 on: March 07, 2008, 11:10:02 »
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

*

Offline oak

  • *
  • 17
Re: Linux sound choppiness
« Reply #17 on: March 07, 2008, 11:24:18 »
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 !

Re: Linux sound choppiness
« Reply #18 on: March 07, 2008, 14:45:30 »
So (only half following along) should we be looking for some kind of linux sound fix in a forthcoming lwjgl release?

*

Offline Matzon

  • *****
  • 2242
Re: Linux sound choppiness
« Reply #19 on: March 07, 2008, 17:26:18 »
still not decided - but anyone may replace the libopenal.so we ship with the oal-soft implementation