Pipewire vs PulseAudio, general question
Pipewire vs PulseAudio, general question
Pipewire is the new hotness. I’ve read comments from various audio engineers and programmers that pipewire “gets it right”.
Pipewire came out in 2017, pulseaudio in 2004.
This got me curious what these acronyms were. I found this information interesting.
There’s still a fine line to draw between usability and performance
ALSA is too low level for musicians to reasonably understand
Having something like PipeWire to make it easier to configure isn’t a bad thing
That’s another nice thing about PipeWire.
It supports configuring JACK for you if you need low latency
www.alsa-project.org/alsa-doc/alsa-lib/pcm.html
After application transfers the data in the memory areas, then it must be acknowledged the end of transfer via snd_pcm_mmap_commit() function to allow the ALSA library update the pointers to ring buffer. This kind of communication is also called “zero-copy”, because the device does not require to copy the samples from application to another place in system memory.
When you tell RTFM expect to see manual stating opposite of your point.
Not direct enough? It literally says it will send your buffer to soundcard without creating any additional buffers.
Other people under this post complain of ALSA being too direct.
Not directly answering your questions:
wiki.archlinux.org/title/PipeWire
I’m bad at describing so take the Arch wiki page.
You don’t really have to worry about configuring much, it should be fine to install all the packages, maybe enable some services, and forget about it.
It’s likely that you’re not using Arch, so you’ll have to check your distro’s repos for the packages.
Pipewire is much better than Pulseaudio, especially for pro audio work because of its low latency. Another popular option is JACK, which must be used in conjunction with Pulseaudio. Harder to set up, but is also great for pro audio. Some audio engineers were having issues with Pipewire when it first came out so they went back to using JACK, but I think Pipewire has improved. Pipewire has been flawless on my end.
If you’re not in pro audio or any kind of multimedia work, it doesn’t really matter and you can just stick with whatever comes pre-configured on your distro. But my vote goes to Pipewire as the best server for pretty much anyone.
I’ve been running Pipewire in pro audio setup for my son and his band mates since the early days of the project. Granted I did run into some issues at first, but for a long time now it has been solid as a rock. With all of the plugins it is a joy to work with, no more Jack, Jack 2, Alsa, Pulse bridging and configuration nonsense, it all just ‘works’ now.
I would recommend it to anyone as a first option when setting up anything audio related on Linux now.
I believe that PipeWire is really solid piece of software, but I couldn’t just let go of JACK just yet. JACK just works and it’s easy to modify important parameters like sample rate or buffer size. On PipeWire I still don’t know how to quite do that, I get lost in all those configuration files, but I will get it someday.
Also one more thing that might be niche, but it’s important for me is JACK timecode (for synching i.e. a DAW with video player) which PipeWire doesn’t support at all at the moment. Getting it work on PipeWire (converting JACK timecode to LTC or MTC) gets ugly pretty quickly. So I’m glad PipeWire allows to use it however I like it, either as JACK server or client.
which must be used in conjunction with Pulseaudio
Why? Just why?
any kind of multimedia work, it doesn’t really matter and you can just stick with whatever comes pre-configured on your distro. But my vote goes to Pipewire as the best server for pretty much anyone.
Or gaming. PulseAudio has insane latency. Use JACK or no server(that means use ALSA). Maybe Pipewire has tolerable latency, but I didn’t test it myself.
What are other alternative popular sound servers besides these two?
ALSA; low level, not really recommended to use directly. JACK; professional audio. GStreamer; idk exactly. Pipewire supports applications using any of those.
Pulseaudio was always buggy for me. I’ve only tried pipewire recently and so far I’ve had no issues.
The only downside is that (from having to do so much troubleshooting) I know more or less how to configure and tweak pulseaudio. If I ever decide to do weird sound things with pipewire, I’m starting from scratch.
Read xkcd. To be fair it doesn’t seem to create new audio api, but be alternative implementation.
I still recommend bare ALSA for average users.