Måns Rullgård wrote:
James Courtier-Dutton <[EMAIL PROTECTED]> writes:
<snip>


The OP was recording.



Oops. My explanation only covers playback, not capture.
But if you use the snd_pcm_avail_update() just before you capture some samples from the buffer, then do a gettimeofday(), you will get an accurate measure of when the samples arrived in the buffer.
If you also use a thread and get it to do poll(), you could also keep the latency down, with it calling the routine on each period elapsed.


Summary: Use a method similar to the playback method, but just modify it a be for record.

Cheers
James


------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to