Update of /cvsroot/alsa/alsa-lib/src/pcm In directory sc8-pr-cvs1:/tmp/cvs-serv1795
Modified Files: pcm.c Log Message: Added htstamp functions Index: pcm.c =================================================================== RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v retrieving revision 1.247 retrieving revision 1.248 diff -u -r1.247 -r1.248 --- pcm.c 28 Feb 2003 17:23:32 -0000 1.247 +++ pcm.c 28 Feb 2003 20:29:47 -0000 1.248 @@ -5543,6 +5543,21 @@ } /** + * \brief Get trigger hi-res timestamp from a PCM status container + * \param ptr Pointer to returned timestamp + */ +#ifndef DOXYGEN +void INTERNAL(snd_pcm_status_get_trigger_htstamp)(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr) +#else +void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr) +#endif +{ + assert(obj && ptr); + *ptr = obj->trigger_tstamp; +} +default_symbol_version(__snd_pcm_status_get_trigger_htstamp, snd_pcm_status_get_trigger_htstamp, ALSA_0.9.0rc8); + +/** * \brief Get "now" timestamp from a PCM status container * \param ptr Pointer to returned timestamp */ @@ -5552,6 +5567,21 @@ ptr->tv_sec = obj->tstamp.tv_sec; ptr->tv_usec = obj->tstamp.tv_nsec / 1000L; } + +/** + * \brief Get "now" hi-res timestamp from a PCM status container + * \param ptr Pointer to returned timestamp + */ +#ifndef DOXYGEN +void INTERNAL(snd_pcm_status_get_htstamp)(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr) +#else +void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr) +#endif +{ + assert(obj && ptr); + *ptr = obj->tstamp; +} +default_symbol_version(__snd_pcm_status_get_htstamp, snd_pcm_status_get_htstamp, ALSA_0.9.0rc8); /** * \brief Get delay from a PCM status container (see #snd_pcm_delay) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog