[Openal] Open Capture Device fails with "invalid argument"
Chris Robinson
chris.kcat at gmail.com
Fri Apr 17 03:58:57 PDT 2009
On Friday 17 April 2009 3:27:35 am Stefan Kögel wrote:
> I am trying to capture microphone input using OpenAL.
> Using ubuntu8.10 a very simple example always results in
>
> "AL lib: alsa.c:564: set access failed: Invalid argument".
>
> I use libopenal-dev 1:1.3.253-4ubuntu1.
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