Jaroslav Kysela wrote:


I'm asking again, what is your problem in your application? Yes, avail in
driver is negative, because appl_ptr is NOT updated from the dmix clients
(and it is not possible - it is a shared thing), but the dmix plugin
should pass the right value (non-negative) to application. Please, don't
look to /proc tree with the dmix plugin. Appearently, you're confused,
because the dmix uses some tricks to let things working.

Jaroslav

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



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.

Cheers
James



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