From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Courtier-Dutton Subject: Re: smix plugin available? Date: Thu, 28 Nov 2002 00:21:15 +1100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <3DE4C6CB.8020407@superbug.demon.co.uk> References: 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: tomasz motylewski Cc: Jaroslav Kysela , Paul Davis , Florian Bomers , "alsa-devel@lists.sourceforge.net" List-Id: alsa-devel@alsa-project.org tomasz motylewski wrote: >Please stop the complication of "available/delay" etc. Just the raw pointer. >Each application knows where its application pointer is, so it can easily >calculate delay/available and decide for itself whether there was an overrun or >not. > > > I use the delay() function. I help write a multi media application that needs to sync audio to video. So the question I ask alsa-lib is "If I write() now, how long will it be before those samples come out of the speakers?" So, I very much need delay(), but I also use available so that I can program alsa when to exit the snd_pcm_wait() poll. I.E. Only exit the snd_pcm_wait when there are enough free space in the buffer for me to bother with a new write() call. Cheers James ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en