mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-07 00:20:09 +00:00
pipewire-alsa: Use monotonic clock
Use monotonic clock instead of gettimeofday for timestamps.
This commit is contained in:
parent
66cf4e68d5
commit
9de98df1b7
|
@ -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…
Reference in a new issue