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.
> ...
> So, when is a PCM ready?

When you can read/write some data without blocking, i.e.,
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.

I think the implementation of dmix is broken in this regard.  If I
read the code correctly, snd_pcm_direct_poll_revents() returns
POLLIN/OUT even if the pcm is empty.

Jaroslav, shouldn't this function reset the events variable when empty
is set?


Regards,
Clemens




-------------------------------------------------------
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

Reply via email to