Spotify, freetube, youtube website, either it’s a streaming issue or an audio playback issue. Whenever my cpu is working too hard audio playback stutters and delays making it unlistenable. Actually some games have alright audio so I think it’s a streaming issue. Anyway I want to know how to prioritise sound streaming or playback cpu in linux?


Audio from low priority processes is expected to stutter under high CPU load. I experience this a lot when playing music while compiling programs.
It’s kinda not supposed to happen if your setup is correct.
Most likely reason is too short buffer. And on high CPU load it’s just getting overrun. There are legitimate ways to mitigate it in pipewire. And even manage some rt prio things. Arch wiki and pipewire docs should have comprehensive info on how to properly setup things. It can be bit complicated because different sources can have different quantum values. So some can stutter and some not, but it should be all configurable. Pipewire is very good in that regard, just sad I don’t see any good tools to manage these values w/o creating/editing configs, so people don’t jump into this rabbit hole of research.
Please note that defaults on pipewire should not stutter regularly with proper interface, my main audio interface performs way above what pipewire set by default. But I did used different interfaces and some do struggle with default quantum values.
Yeah you can mitigate it. Doesn’t change the fact that if you have no CPU time available, the audio is not getting played.