mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
When timer is not using monotonic clock, apply clock offset to translate the time values to the monotonic clock when putting them to spa_io_clock nsec fields. Get appropriate clock offset by smoothed filtering. The parameters here keep the offset jitter < 10ns or so. As monotonic/boottime/realtime all contain adjtime(), there generally is no drift in the offset here, so just averaging should be fine. Also fix using wrong timer clock when freewheeling. |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| include-private/spa-private | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||