Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I found a brief discussion on LQ here and wanted to further explore this. As a consistent Gentoo user since 2.6, I've never had to deviate from ALSA until now. Granted sometimes configuring it is a PITA, but once it is properly set up issues seldom arise.
AFAIK PulseAudio runs as a layer between the ALSA drivers and the software. To quote Nathan Willis
Quote:
It's easiest to explain where PulseAudio fits into the GNOME system because of that desktop environment's separation between individual tasks. An application like Rhythmbox relies on GStreamer to decode sound files from compressed form into raw audio. GStreamer in turn passes the audio down to ESD, and ESD delivers it to the ALSA hardware driver.
In this situation, PulseAudio replaces ESD without affecting the rest of the pipeline. But another player might rely on the ALSA userspace library, which is not part of the previous example. Here you can insert PulseAudio into the pipeline, again right above the kernel-level hardware drivers. It adds an extra layer, but with it you enjoy the benefit of all of your audio passing through the same sound server.
So basically, PulseAudio still requires ALSA to function at some level. Removing support for ALSA is only adding latency to the system, right? And further complicating things?
There has been a lot of discussion over the years related to the unnecessarily complicated audio system in Linux. Does moving more applications to software like PulseAudio add to this complication? Or is this a step in the right direction?
Last edited by unassailable; 12-29-2016 at 04:44 PM.
Reason: Added link to drop confirmation
If you have a microphone and want to talk to somebody AND record your microphone to a file, this is impossible with ALSA.
Because it goes Microphone Hardware -> Talk to somebody
However, pulseaudio creates a layer that allows it to duplicate that stream so that you can send audio to that layer, which can then send it to talk to someone and record it.
I had heard about that as well, but I have not been paying too much attention to it.
My installation is openSUSE and I have never used ALSA a lot. Still, seeing the large amount of users still relying on ALSA for their sound, this should have some uncomfortable impact I suppose. At the end, I suppose it will just result in more people moving over to Google Chrome. In fact, a lot of people are already migrating for several reasons.
Yet, I wonder if this will also be the case for IceWeasel, or if they will keep support ALSA for the time being.
If you have a microphone and want to talk to somebody AND record your microphone to a file, this is impossible with ALSA.
Because it goes Microphone Hardware -> Talk to somebody
However, pulseaudio creates a layer that allows it to duplicate that stream so that you can send audio to that layer, which can then send it to talk to someone and record it.
Or if you want to play music AND record it
AFAIK ALSA supports this through HW and SW mixing, depending on your sound controller. You can record what you hear
Quote:
Unlike ALSA, PulseAudio can run on multiple operating systems, including other POSIX platforms and Microsoft Windows. This means that if you build an application to use PulseAudio rather than ALSA, porting that application to a different platform should be easy.
This makes sense now, I didn't realize that PulseAudio worked on M$ and POSIX platforms. From the Mozilla developer's point of view it does make sense to drop support for ALSA. It will be interesting to see if other applications start to follow this precident.
Last edited by unassailable; 12-29-2016 at 04:32 PM.
Reason: answering previous question
PulseAudio has been around for over a decade and most distros use it. It also runs on all the POSIX systems, but the Windows version seems to have been abandoned. Like any software, it had initial teething troubles, and these tend to be still cited — generally by the sort of people who still cite 1990s problems with dependency resolution...
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by DavidMcCann
PulseAudio has been around for over a decade and most distros use it. It also runs on all the POSIX systems, but the Windows version seems to have been abandoned. Like any software, it had initial teething troubles, and these tend to be still cited — generally by the sort of people who still cite 1990s problems with dependency resolution...
I think I am one of the people of which you type. I cannot even think of PulseAudio without an expletive in my head.
However, I have lived with it for a while and it seems to allow multiple streams in and out a lot more xo sistently than ALSA. Don't get me wrong, I've had ALSA stream, split streams and the like just fine but only very fragile configurations -- used less CPU though.
PulseAudio, to me at least, does actually seem like fairly good software nowadays (that's a compliment).
Distribution: arch and gentoo and ubuntu 32bit for hw ressurections.
Posts: 22
Rep:
firefox wants to shutdown ALSA?
The fox is usually a wise animal. It is clever. It does not drop some good old working technology like ALSA in favor of an instable new feature shiny nonsense called pulse.
If the fox is not wise and chooses the path of pulse then me would have to drop the usage of fox after decades.
so it's been over two years now, eh? time flies...
i'm still using vanilla firefox (well seamonkey actually), and plain ALSA.
I manage media playback with a simple addon that allows me to open links with a program or custom script. unsurprisingly, it's called "Open With...".
that points to mpv, which is able to play almost every link I throw at it through the magical powers of youtube-dl.
Quote:
Originally Posted by e3k
in favor of an instable new feature shiny nonsense called pulse.
erm. i don't like it either, but it's definitely not new or particularly unstable.
Distribution: arch and gentoo and ubuntu 32bit for hw ressurections.
Posts: 22
Rep:
i did not say new but 'new feature'. software that orients on 'new features' often forgets about good old traditional approach that has stability as priority.
after years i did not have a single issue with ALSA but i can not tell this about PULSE..
the fox really should not burn the bridge ALSA in favor of PULSE. rather it should keep both. ANALOGY: that is like to rip out all LAN cables out of a building just because now you have WIFI. doing this would be stupid and ignorant.
That's the ideal to strive for. The problem in this case was the Mozilla project's choice to make a major switch in tools, which in turn caused need for ALSA-specific maintenance/maintainer, which nobody paid anybody to do, and for which no one offered to step up and do for free. I'm not defending the result, just passing along what I understand to be the facts that created the loss. It's not unlike, though less serious than, the much less recent decision to make Firefox the project flagship, replacing the Mozilla Suite that was the reason for the project's creation. Some of us remain (SeaMonkey) suite users, but it is getting more and more difficult to do so, and may become impossible before much longer. As it turns out, ALSA does still work in SeaMonkey latest.
Happily using Firefox 63 with neither pulseaudio or ALSA, but OSS, in OpenBSD 6.4. Frankly, the creeping "Poettering-ware" in Linux is one of the reasons I left Linux for BSD. I don't know what the OpenBSD folks have done to make audio work in FF, but I'll take it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.