tomasz motylewski wrote:
Please stop the complication of "available/delay" etc. Just the raw pointer.I use the delay() function.
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 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
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel