yOn Sun, 21 Mar 2004, James Courtier-Dutton wrote:
> 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 ?
When avail >= avail_min.
> 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.
We had a bug in the resample plugin which causes that snd_pcm_wait()
function was broken. Try alsa-lib from CVS.
Jaroslav
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
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
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel