Game Development Community

OpenAL issues on linux

by Chris \"Hobbiticus\" Weiland · in Torque Game Engine · 04/15/2003 (8:12 pm) · 4 replies

got a clean build off of cvs, newest openal drivers a la apt-get in under stable/main, and apparently it's missing functions. But that's after I symlink /usr/lib/libopenal.so to /usr/lib/libopenal.so.0. I'm also running the latest version of debian. What am I missing?

#1
04/15/2003 (9:06 pm)
Is there a date associated with that openal distribution? The linux version and the creative version were out of sync for a while (linux version had some missing functions), but that was fixed a few months ago in the openal cvs.
#2
04/16/2003 (8:51 am)
Hmm...I switched to unstable/main, but it still didn't work, but I found /usr/lib/libopenal0.so.0, and make /usr/lib/linopenal0.so a symlink to it and it worked. I guess the version on stable/main has issues. Also, it might be a good thing to look for .so.0 as well as .so

EDIT:
now it's saying:

hobbit@debian:/usr/local/torque/example$ ./torqueDemo_DEBUG.bin
open /dev/[sound/]mixer: Permission denied
Segmentation fault

it segfaults after a few seconds of running.

EDIT AGAIN:
I got rid of the mixer error by chmod a+rw /dev/mixer, but it still segfaults REALLY often. I get about 10-15 secs before it dies.
#3
04/16/2003 (6:19 pm)
Well, its probably either a problem with your linux sound card driver, or with openal itself.

You can try forcing openal to use SDL for sound output instead of writing to the device itself. For this your SDL library has to be compiled with sound support, and you need to create a file in your home directory called .openalrc, and put this line in it:

'((devices '(sdl)))

If that doesn't work, you could try getting the latest openal code from the openal cvs, or pull down the marble blast linux demo and grab the openal library included with it. That one is fairly stable.

If none of that works, I reckon its a problem with your sound card's drivers. What kind of card is it?
#4
04/17/2003 (4:01 pm)
It's a sound blaster audigy using the emu10k1 driver. I have Tribes 2 for linux linstalled and it runs fine, so I'm assuming it's something with OpenAL. I guess I'll have to try direct from cvs rather than going thru apt-get.