[alsa-devel] Help in understanding SND_PCM_TSTAMP_ENABLE mode snd_pcm_htimestamp function

Clemens Ladisch clemens at ladisch.de
Wed Jul 17 15:52:47 CEST 2013


divya v wrote:
> I am looking for a method to maintain timestamps for every sample read or
> written.

ALSA does not have timestamps for every sample.

> I noticed the *SND_PCM_TSTAMP_ENABLE mode. But the description mentions - ""
> *pdate timestamp at every hardware position update"
> Doe this mean that the when snd_pcm_htimestamp() is issued, we will get the
> last hardware update timestamp

Yes, this is what the documentation says.

> or does it mean that it will fetch the timestamp of that particular
> sample?

Yes; it will fetch the timestamp of the particular sample that is
returned in "avail".


Regards,
Clemens


More information about the Alsa-devel mailing list