[Openal] Problems with ALSA and the Sample implementation
troystoy at shaw.ca
Fri Jul 27 11:34:52 PDT 2007
Thanks for your responses. See also my response to Jason's post.
I'll be investigating whether I need to/can upgrade ALSA... many
machines would be involved.
Things work fine with OpenAL if I'm using OSS. aplay works fine (as
long as there isn't an OSS app locking out the sound device). I did
originally have a .asoundrc and no .openalrc but I've tried several
different combinations where those files were present or not and with
different contents. Right now, there is no .asoundrc present.
Adding oss to the list of devices results in the application using OSS.
As noted in my response to Jason's post, I'm looking at possible
problems with 32-bit apps trying to access the device on a 64-bit OS.
I've created both a 32-bit version and a 64-bit version of my test app
that tries to open the device. Running with strace shows the following
interesting bit. After opening /dev/snd/controlC0 the 32-bit app tries
to use ioctl with USBDEVFS_CONTROL and gets an error code back
indicating an invalid argument was passed. This results in the error
messages that I was seeing from ALSA-lib. The same call for the 64-bit
app is successful (I don't see the error messages then). Perhaps a red
herring but I'll pursue a bit more.
Thanks again for your input.
More information about the Openal