All of lore.kernel.org
 help / color / mirror / Atom feed
* snd_pcm_wait()  More details required.
@ 2004-03-21 14:49 James Courtier-Dutton
  2004-03-22  9:56 ` Jaroslav Kysela
  2004-03-22 10:10 ` Clemens Ladisch
  0 siblings, 2 replies; 10+ messages in thread
From: James Courtier-Dutton @ 2004-03-21 14:49 UTC (permalink / raw)
  To: ALSA development

I need more details on exactly what snd_pcm_wait() is supposed to do.
The documentation on the www.alsa-project.org gives: -
Wait for a PCM to become ready.

Parameters:
     pcm  	PCM handle
     timeout  	maximum time in milliseconds to wait

Returns:
     a positive value on success otherwise a negative error code (-EPIPE 
for the xrun and -ESTRPIPE for the suspended status, others for general 
errors)

Return values:
     0  	timeout occurred
     1  	PCM stream is ready for I/O



So, when is a PCM ready?
If a PCM is already in SND_PCM_STATE_RUNNING, when is snd_pcm_wait() 
supposed to return ?

I have discovered a problem with xine when using it. I have done a work 
around in xine so that dmix now works in xine. I think that my 
assumptions regarding snd_pcm_wait() might have been wrong, so I want to 
  get accurate details from yourselves.
It also might be a good idea to update the documentation for 
snd_pcm_wait() with more details.

Cheers
James


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-03-24  9:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-21 14:49 snd_pcm_wait() More details required James Courtier-Dutton
2004-03-22  9:56 ` Jaroslav Kysela
2004-03-22 17:31   ` James Courtier-Dutton
2004-03-22 17:51     ` Jaroslav Kysela
2004-03-23 12:33       ` Clemens Ladisch
2004-03-23 13:40         ` Jaroslav Kysela
2004-03-24  7:58           ` Clemens Ladisch
2004-03-24  8:59             ` Jaroslav Kysela
2004-03-22 10:10 ` Clemens Ladisch
2004-03-22 10:09   ` Jaroslav Kysela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.