[Openal-devel] Patch for intermittent ALSA capture
Jason Daly
jdaly at ist.ucf.edu
Tue May 6 15:41:32 PDT 2008
Chris,
I discovered that I can't call alcCaptureStart(), then alcCaptureStop(),
then alcCaptureStart() again. This is with oal-soft 1.3.253, using the
ALSA backend.
I attached a patch that fixes it. Basically, you just need to call
snd_pcm_prepare before each call to snd_pcm_start (not just the first
one). If you don't do this, the second and subsequent start calls
return an error, which snd_strerror reports as "File descriptor in bad
state".
--
--"J"
"I'm a castaway stranded in a desolate land,
I can see the footprints in the virtual sand."
--Neil Peart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa.c.diff
Type: text/x-patch
Size: 302 bytes
Desc: not available
Url : http://opensource.creative.com/pipermail/openal-devel/attachments/20080506/fb91f5ff/alsa.c.bin
More information about the Openal-devel
mailing list