mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pipewire-alsa: Use monotonic clock
Use monotonic clock instead of gettimeofday for timestamps.
This commit is contained in:
parent
66cf4e68d5
commit
9de98df1b7
1 changed files with 1 additions and 0 deletions
|
|
@ -948,6 +948,7 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name,
|
|||
#else
|
||||
#warning hw_ptr updates of buffer_size will not be recognized by the ALSA library. Consider to update your ALSA library.
|
||||
#endif
|
||||
pw->io.flags |= SND_PCM_IOPLUG_FLAG_MONOTONIC;
|
||||
|
||||
if ((err = snd_pcm_ioplug_create(&pw->io, name, stream, mode)) < 0)
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue