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. |
||
|---|---|---|
| .. | ||
| cpu-arm.c | ||
| cpu-x86.c | ||
| cpu.c | ||
| dbus.c | ||
| evl-plugin.c | ||
| evl-system.c | ||
| journal.c | ||
| logger.c | ||
| loop.c | ||
| meson.build | ||
| node-driver.c | ||
| null-audio-sink.c | ||
| plugin.c | ||
| system.c | ||