mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added htstamp functions
This commit is contained in:
parent
cf9e518d51
commit
1ac62945f8
2 changed files with 32 additions and 0 deletions
|
|
@ -930,7 +930,9 @@ void snd_pcm_status_free(snd_pcm_status_t *obj);
|
|||
void snd_pcm_status_copy(snd_pcm_status_t *dst, const snd_pcm_status_t *src);
|
||||
snd_pcm_state_t snd_pcm_status_get_state(const snd_pcm_status_t *obj);
|
||||
void snd_pcm_status_get_trigger_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr);
|
||||
void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
|
||||
void snd_pcm_status_get_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr);
|
||||
void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
|
||||
snd_pcm_sframes_t snd_pcm_status_get_delay(const snd_pcm_status_t *obj);
|
||||
snd_pcm_uframes_t snd_pcm_status_get_avail(const snd_pcm_status_t *obj);
|
||||
snd_pcm_uframes_t snd_pcm_status_get_avail_max(const snd_pcm_status_t *obj);
|
||||
|
|
|
|||
|
|
@ -5542,6 +5542,21 @@ void snd_pcm_status_get_trigger_tstamp(const snd_pcm_status_t *obj, snd_timestam
|
|||
ptr->tv_usec = obj->trigger_tstamp.tv_nsec / 1000L;
|
||||
}
|
||||
|
||||
/**
|
||||
* \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
|
||||
|
|
@ -5553,6 +5568,21 @@ void snd_pcm_status_get_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr
|
|||
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)
|
||||
* \return Delay in frames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue