[Openal] Open Capture Device fails with "invalid argument"
Stefan Kögel
stefan-wieland.koegel at stud.tu-ilmenau.de
Fri Apr 17 05:10:12 PDT 2009
Huh, it did not work for me.
I compiled openAl 1.7.411 and changed the buffer size to various amounts...
ALCdevice *CaptureDevice=alcCaptureOpenDevice(NULL, 11025 ,
AL_FORMAT_MONO16, 48);
What I get is:
AL lib: alsa.c:612: set access failed: Invalid argument
AL lib: ALc.c:1352: exit(): closing 1 Device
Is a buffer size of 48 still to big?
Kind regards, Stefan
Chris Robinson wrote:
> This is a result of the requested buffer size being too large for ALSA to
> provide.
>
>
>> What can I do to fix this?
>
> The simplest way is to use a smaller buffer size, though that means you'll
> have to make sure to read and use the captured samples more frequently.
>
> Otherwise, try upgrading to a newer version of OpenAL Soft, if possible. They
> have a fallback to use an intermediate buffer if ALSA can't give a large
> enough one.
>
>
>
More information about the Openal
mailing list