pipewire-alsa: Use monotonic clock

Use monotonic clock instead of gettimeofday for timestamps.
This commit is contained in:
Mersad Jelacic 2020-03-02 11:54:02 +01:00 committed by Wim Taymans
parent 66cf4e68d5
commit 9de98df1b7

View file

@ -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;