For the most part, switching to PipeWire from PulseAudio was seamless. Initially I did stumble upon a couple of bugs that were quickly fixed.
But under high CPU load I started to notice crackling. It wasn't that annoying, so for a while I didn't bother trying to fix it. Until I stumbled upon a solution somewhere and decided to try it. Create the following config file and restart pipewire:
# cat /etc/pipewire/pipewire.conf.d/99-rates.conf
context.properties = {
default.clock.rate = 44100
default.clock.allowed-rates = [ 44100 48000 88200 96000 ]
#default.clock.quantum = 1024
default.clock.min-quantum = 512
#default.clock.max-quantum = 2048
#default.clock.quantum-limit = 8192
#default.clock.quantum-floor = 4
}
Raising the default.clock.min-quantum
completely fixed the issue for me. For some reason, it used to go really low even under load, underrunning the audio interface. Obviously, this will cause audio latency to increase, but I couldn't hear any difference in that regard.
You can view the quant value for each process in pw-top
, or even change the settings on the fly with pw-metadata -n settings 0 clock.min-quantum 256
.
0 Comments latest
No comments.