LWJGL Forum

Programming => OpenAL => Topic started by: hvor on December 27, 2005, 15:38:21

Title: Compilation of libopenal.so
Post by: hvor on December 27, 2005, 15:38:21
Can anyone tell me how is libopenal.so compiled for linux? I got this comment on other thread and want to understand it. I really dont know much about linux platforms :(


It doesn't run on my linux system, because you assume that OpenAL context creation goes well and calls an OpenAL function. You shouldn't assume that the sound system could be created, but the real reason it fails here is that my system is ALSA only (SUSE 10) and the bundled libopenal.so is apparently only compiled with OSS support.
Title: Compilation of libopenal.so
Post by: elias on December 27, 2005, 16:02:43
That was me :) You can use the openal library from Tribal Trouble which is relatively recent and with ALSA support. I've uploaded it to:

http://imada.sdu.dk/~enaur/libopenal.so

- elias
Title: Compilation of libopenal.so
Post by: elias on December 27, 2005, 16:08:09
The other problem was that your game crashed at all. To fix that, you should not only catch the LWJGLException from AL.create() but also make sure you don't call any OpenAL functions (try to comment out the AL.create() in your game and see what happens).

- elias
Title: Compilation of libopenal.so
Post by: hvor on December 27, 2005, 16:08:33
Oh, Elias! :D
Thanks!