From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Courtier-Dutton Subject: Re: status pointer's problem with dmix. Date: Thu, 18 Sep 2003 17:20:28 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <3F69DB4C.8070401@superbug.demon.co.uk> References: <3F68A8F9.6010605@superbug.demon.co.uk> <3F69A98B.5020106@superbug.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Jaroslav Kysela Cc: Alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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 > 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