On Thu, 18 Sep 2003, James Courtier-Dutton wrote:

> You are correct, my application does in fact get correct "delay" values,
> but the /proc/asound/card0/pcm0p/sub0/status does not show these when
> using dmix.
>
> The sound output from my application is very broken up when using
> "dmix", but sounds fine when using "front".
>
> The break up sounds like one period sound, one period mute, one period
> sound, one period mute.
>
> It must be something in my application, because aplay does not break up.
>
> I suspect it is my application trying to do xrun recovery or something
> like that, but dmix runs freewheel even on xruns, so I might have to
> change some of my code. My reasoning behind this, is that with "front",
> I can do xrun recovery by stopping and then restarting the pcm, so the
> recovery is very quick, but with dmix, I have to wait a whole period
> before sound output starts again.

A quick idea: Do you use snd_pcm_poll_descriptors_revents() function to
parse returned poll events? The dmix plugin uses the PCM timer as the poll
source, but it does not use POLLOUT but POLLIN !!!

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to