]> git.alsa-project.org Git - alsa-lib.git/commitdiff
PCM API - explain more trigger timestamp
authorJaroslav Kysela <perex@perex.cz>
Thu, 10 Apr 2008 07:46:10 +0000 (09:46 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 10 Apr 2008 07:46:10 +0000 (09:46 +0200)
src/pcm/pcm.c

index efabf5c311078a35db06b8f7ceb9c12c34050cec..a30d319a2c23875d14e16c9b7d4e081ef0903ec3 100644 (file)
@@ -5882,6 +5882,10 @@ snd_pcm_state_t snd_pcm_status_get_state(const snd_pcm_status_t *obj)
  * \brief Get trigger timestamp from a PCM status container
  * \param obj #snd_pcm_status_t pointer
  * \param ptr Pointer to returned timestamp
+ *
+ * Trigger means a PCM state transition (from stopped to running or
+ * versa vice). It applies also to pause and suspend. In other words,
+ * timestamp contains time when stream started or when it was stopped.
  */
 void snd_pcm_status_get_trigger_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr)
 {
@@ -5894,6 +5898,10 @@ void snd_pcm_status_get_trigger_tstamp(const snd_pcm_status_t *obj, snd_timestam
  * \brief Get trigger hi-res timestamp from a PCM status container
  * \param obj #snd_pcm_status_t pointer
  * \param ptr Pointer to returned timestamp
+ *
+ * Trigger means a PCM state transition (from stopped to running or
+ * versa vice). It applies also to pause and suspend. In other words,
+ * timestamp contains time when stream started or when it was stopped.
  */
 #ifndef DOXYGEN
 void INTERNAL(snd_pcm_status_get_trigger_htstamp)(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr)