5 ms·
I remember back when ALSA was a hot new thing on Linux, and it kinda sorta solved the "only one app can play things at the same time" problem that existed with
by int_19h 5y ago
I remember back when ALSA was a hot new thing on Linux, and it kinda sorta solved the "only one app can play things at the same time" problem that existed with the traditional OSS.
Meanwhile, OSS on FreeBSD just worked.
- rescbr 5y agoRinse & repeat when every desktop environment brought their own audio daemons, then later PulseAudio and now PipeWire. I still roll my eyes and I don’t get surprised every couple of years when somebody releases a yet another Linux audio daemon. Maybe it’s some kind of Linux tradition. At least PipeWire is saner compared to PulseAudio.
- feanaro 5y ago> At least PipeWire is saner compared to PulseAudio. In what way?
- PaulDavisThe1st 5y agoPipewire implements both ALSA psuedo-devices, the JACK API and the PulseAudio API. You only need a single daemon to address all possible audio I/O needs, something that PulseAudio could not do.
- ta988 5y agoSince I switched to pipewire, my audio is crackling every time the cpu is loaded (a ryzen 7...) not even jack was struggling with that on this machine
- PaulDavisThe1st 5y agoPipewire is not finished at this point. It is being deployed "early" by some distros, apparently in the belief that it will help find bugs and help them being fixed.
- deleted 5y ago[deleted]
- m45t3r 5y agoDouble check that you're running PipeWire with rtkit (this is the default with PulseAudio, AFAIK it is not the default yet on PipeWire). It is really important to run a sound daemon with realtime privileges. This is the only way to ensure no cracks.
- ta988 5y agoThanks I'll check that
- PaulDavisThe1st 5y ago> every couple of years when somebody releases a yet another Linux audio daemon. You seem to be stuck in, oh, maybe 2008. There hasn't been "yet another Linux audio daemon" in more than a decade. JACK came along in the early 2000's (I wrote it), and PulseAudio in 2004 or thereabouts. All that nonsense with esd, artsd etc. was over because the aughts were over.
- calvinmorrison 5y agoartsd.... now that's a name I haven't heard in a long time!
- scns 5y agoThank You For JACK. Even though i don't do audio on Linux.
- WhyNotHugo 5y agoYou seem to have missed pipewire. While it supports the same APIs as Pulseaudio, it's still a new audio (and video) daemon.
- PaulDavisThe1st 5y agoThe GP is about pipewire, and was complaining that it's "just another linux audio daemon". I concluded that it wasn't necessary to mention it in the context of my comment.
- woofie11 5y agoMy problem is that all of these are incompatible. Woe be to whomever has an OSS app, an ALSA app, a JACK app, and a PulseAudio app, all of which want to run at the same time. I don't get why this was never fixed at the kernel level. You have onions of layers.
- bitwize 5y agoPipeWire solves this problem. It provides ALSA, JACK, and PulseAudio emulation (no one has actually used OSS on Linux in decades). It is the audio solution for Linux. PipeWire does video too, and when combined with a compatible Wayland compositor, serves as a replacement for remote X11.
- coldpie 5y agoReplace "PipeWire" with "PulseAudio" and hey look it's 2010 all over again. Don't worry, THIS time we got right FOR SURE.
- majewsky 5y agoPulseAudio never intended to replace Jack. And in fact, that's one of its biggest failings. FWIW, I have recently switched from PulseAudio to PipeWire. I remembered how rough the switch from plain ALSA to PulseAudio was, and thus was utterly baffled how smooth the transition to PipeWire is. I just uninstalled PulseAudio, installed PipeWire, rebooted, and everything just worked, down to the Bluetooth headset that I never quite got to work well with PulseAudio.
- woofie11 5y ago.... Wait a minute. You got a bluetooth headset working reliably with Linux? Tell me more...
- rescbr 5y agoYeah, I had the same experience. With PipeWire it (mostly) just works, and reliably. The only thing I'm missing is always presenting the microphone as an usable device and only switching codecs/profile when the microphone is being used.
- codedokode 5y agoWhat I don't like is that audio systems on Linux are too complicated. For example, all that ALSA needs to do is to provide exclusive access to a device (only one program at a time) and send samples into it unmodified (no bit depth change, no resampling, no mixing, no volume adjustment etc). But open source developers cannot do such a simple thing. They added thousands of unnesessary features, hundreds config options and turned ALSA into a monster. When it should be just a dumb backend for PulseAudio.
- coryrc 5y agoOSS got that ability decades ago, yet we still have ALSA and then the others :(
- PaulDavisThe1st 5y agoOSS did not have the ability when it was removed from the kernel and replaced by ALSA, which did have that ability already. There were (and are) many problems with the OSS API, a number of which continue to exist in the ALSA API too. All serious audio APIs (plugins, or native audio I/O) use a pull model at the bottom of the stack, so that i/o is driven by the hardware. You can layer a push model (where software does blocking read/write calls whenever it wants) on top of that, but not the other way around. And yes, OSS and ALSA both implement select/poll etc. for audio devices, but do not enforce the use of this model, resulting in the 2000s being filled with Linux (and *BSD) apps that couldn't function correctly without oodles of buffering.
- gjasny 5y agoI remember the mixer interface (channel volumes, mute states, routing matrix) was far superior with ALSA. I used a script to toggle the SPDIF output stream of my Soundblaster Live to get track marks on the Mini Disc player recording the output.
- kelnos 5y agoIt didn't, though, initially. On hardware that supported multiple streams, it worked (assuming the driver for that hardware knew how to do it), but for hardware that didn't, you had to use the ALSA dmix plugin, which for the longest time wasn't enabled by default because it was the cause of some audio artifacts.
- int_19h 5y agodmix is what I meant. But you had to use ALSA to use dmix, so in practice, it was the biggest reason to switch for most.