You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pulse: make tlength parameter configurable, reduce fragsize
PipeWire audio agent synchronizes to pacat-simple-vchan rate of taking
data out of vchan and wants to ensure it never ends empty. Pulseaudio
and PipeWire seems to handle them differently (looks like Pulseaudio is
less accurate in this regard). With PipeWire in dom0, it is closer to
what is configured, and theoretically could lead to underruns. Make it
configurable (beyond just disabling low latency mode), so it's easier to
mitigate issues. Note also that PA_STREAM_ADJUST_LATENCY is enabled, so
the tlength avalue includes hardware buffer size, which may differ from
system to system. And also, tlength affects default prebuf value.
While at it, reduce fragsize for recording. Pulseaudio agent (used in
older distributions, and in a stubdomain) uses vchan of 2048 bytes, so
record stream chunked into 4096 doesn't fit. It works only because
pacat-simple-vchan uses blocking vchan writes, but that may negatively
impact parallel playback stream. And also, smaller fargsize may reduce
latency (although it was good enough already).
QubesOS/qubes-issues#8955
0 commit comments