mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Don't reschedule a timeout when we have less samples available than the target but only reschedule when we have less that the required amount we need to read. This ensures that we hover around the target level and the timeouts/rate matching adapts correctly. Previously we would only rate match if the have at least the target amount of samples, which would then always result in a possitive rate adjustment and cause drift. For capture, make sure that there is at least 32 samples of headroom when we are not using IRQ mode to handle jitter in the timer wakeup. For capture of batch devices this results in (for a 1024 quantum) a target buffer fill level of 1024 + 512, and we will read if there are at least 1024 samples available. For non-batch devices we aim for a target buffer fill level of 1024 + 32 and read if there are at least 1024 samples available. |
||
|---|---|---|
| .. | ||
| aec | ||
| alsa | ||
| audioconvert | ||
| audiomixer | ||
| audiotestsrc | ||
| avb | ||
| bluez5 | ||
| control | ||
| ffmpeg | ||
| jack | ||
| libcamera | ||
| support | ||
| test | ||
| v4l2 | ||
| videoconvert | ||
| videotestsrc | ||
| volume | ||
| vulkan | ||
| meson.build | ||