On jack, if you haven’t worked with it before here my old instruction to give people idea on setup.
Just keep in mind - it was written with pulseaudio setup in mind, i have no time to rewrite it right now for pipewire, so for example if you install
pulseaudio-jack i remember it have some conflict with pipewire, still better than nothing
Idea of routing everything through jack is still the same.
buffer under-or-overrun, X stands for under or over. It’s a sign that your system did not process some buffers in time, so some data is missed. It is particularly true when you run at very low buffer size where the sound card should process incoming buffers very fast (overrun). Some chips cannot cope with small buffer sizes, so you have to increase the buffer length to ease the work done by the sound chip.
Realtime config quick scan
Use this script and all of it’s recommendations (except maybe CPU Governors & RT Kernel)
Route all audio through JACK
Here’s basic setup…
Install those packages:
Launch Cadence and do it’s most basic settings (to route all audio through JACK):
[x] Auto-start JACK or LADISH at login
Alsa -> PulseAudio -> JACK (plugin)
[ ] Auto-start at login
[x] Duplex Mode !
Device/Interface - your audio card
Sample rate - 44100 kHz
Buffer size - 512
Period/Buffer - 2
System settings - Audio
[x] JACK sink (PulseAudio JACK Sink)
Smaller buffer size - obviously smaller will be latency, but if you just listen and don’t create music - it should be safe starting value (although outcome heavily depends on Audio hardware, usually you should aim for as small value as possible, which doesn’t introduce crackles / xruns)
Inside Cadence there is Tools - Catia - here you can route anything to any connection like an octopus
Now to use jack in program that supports it directly, you start for example VLC, go to Tools - Preferences - Audio - Output module and choose JACK audio output, this means that you will completely bypass pulseaudio and ALSA and use jack directly.
Now, close VLC and open any audio file with it see if there is a sound!