[alsa-devel] Timing Info

Paul Dugas paul at dugasenterprises.com
Sat Jun 12 00:00:54 CEST 2010


I'm using snd_pcm_readi() to collect samples and am wondering if/how I
can get accurate timestamps for them.  Seems like the snd_pcm_status()
gives me this info but I'm unclear on the specifics.  Can someone
point me toward the correct field in the status structure that I
should be using and what sample that timestamp corresponds to?

Does snd_pcm_status_get_tstamp() get me the timestamp for the first
frame returned by the next snd_pcm_readi() call?


P


More information about the Alsa-devel mailing list