[Openal] audio capture - linux - Please Help !
Chris Robinson
chris.kcat at gmail.com
Tue May 13 12:54:10 PDT 2008
On Tuesday 13 May 2008 12:26:32 pm danflu at uninet.com.br wrote:
> Hello,
>
> I'm trying to use openal to capture audio in linux (Ubuntu
> 7.10).
>
> I've made a very simple program to test the API but it's not
> working. I'm getting an AL_INVALID_OPERATION when calling
> alGetError().
alGetError works on the current context. However, capture devices don't use a
context. Without a context, alGetError will always return
AL_INVALID_OPERATION because it is an invalid operation to use the regular
al* calls without a context set.
Instead, you need to use the alc* function with the capture device.
alcGetError(mydevice) should return the proper error code.
More information about the Openal
mailing list