this post was submitted on 10 Dec 2025
37 points (100.0% liked)

Linux

63651 readers
622 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] tekato@lemmy.world 5 points 3 months ago (1 children)

Audio from low priority processes is expected to stutter under high CPU load. I experience this a lot when playing music while compiling programs.

[–] Karmatrine@sh.itjust.works 8 points 3 months ago* (last edited 3 months ago) (1 children)

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.

[–] tekato@lemmy.world 2 points 3 months ago

Yeah you can mitigate it. Doesn’t change the fact that if you have no CPU time available, the audio is not getting played.