[Openal-devel] Patch for intermittent ALSA capture

Jason Daly jdaly at ist.ucf.edu
Tue May 6 15:41:11 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



More information about the Openal-devel mailing list