LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 12-29-2016, 02:24 PM   #1
unassailable
Member
 
Registered: May 2012
Distribution: gentoo, debian, qubes, openELEC
Posts: 42

Rep: Reputation: 2
Firefox dropping ALSA support for PulseAudio


From bugzilla:
Quote:
ALSA support is dropped from Firefox 52 onward.
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.

For background, this is a good reference explaining the audio system in Linux.

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
 
Old 12-29-2016, 03:06 PM   #2
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
From what I understand:

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
 
1 members found this post helpful.
Old 12-29-2016, 03:10 PM   #3
bbuske
Member
 
Registered: Dec 2016
Location: Venezuela
Distribution: Manjaro
Posts: 109

Rep: Reputation: 15
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.
 
Old 12-29-2016, 04:25 PM   #4
unassailable
Member
 
Registered: May 2012
Distribution: gentoo, debian, qubes, openELEC
Posts: 42

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Sefyir View Post
From what I understand:

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.
(source)

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
 
1 members found this post helpful.
Old 12-29-2016, 05:30 PM   #5
bbuske
Member
 
Registered: Dec 2016
Location: Venezuela
Distribution: Manjaro
Posts: 109

Rep: Reputation: 15
Oh, I did not realize that either.. As I said, I did not use ALSA a lot anyways.

Though now this makes more sense.. At least from a general point of view. I still wonder, whether or not the other browsers will follow this or not.
 
Old 12-30-2016, 11:32 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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...
 
Old 12-30-2016, 12:13 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by DavidMcCann View Post
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).
 
Old 01-18-2019, 01:07 PM   #8
e3k
LQ Newbie
 
Registered: Feb 2011
Location: EU
Distribution: arch and gentoo and ubuntu 32bit for hw ressurections.
Posts: 22

Rep: Reputation: 0
Exclamation 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.

sniff sniff

Last edited by e3k; 01-18-2019 at 01:10 PM.
 
Old 01-18-2019, 02:02 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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 View Post
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.
 
Old 01-19-2019, 12:48 AM   #10
e3k
LQ Newbie
 
Registered: Feb 2011
Location: EU
Distribution: arch and gentoo and ubuntu 32bit for hw ressurections.
Posts: 22

Rep: Reputation: 0
Lightbulb

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.
 
Old 01-19-2019, 01:29 AM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by e3k View Post
rather it should keep both.
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.
 
Old 01-19-2019, 02:10 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by mrmazda View Post
As it turns out, ALSA does still work in SeaMonkey latest.
it does?
which version, installed from where?
because it does not work on mine: 2.49.4-3.
 
Old 01-19-2019, 03:24 AM   #13
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by ondoho View Post
it does?
which version, installed from where?
because it does not work on mine: 2.49.4-3.
I have questions for you too, so contact me for dialog mrmazda AT [removed] dot net or nick a-865 on IRC freenode or moznet
 
Old 01-19-2019, 07:44 AM   #14
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
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.
 
Old 01-19-2019, 09:03 AM   #15
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
I'm with you, JW, most of my machines are now running OpenBSD - Linux seems to be becoming a version MS - not very 'Unix like' any more.
 
1 members found this post helpful.
  


Reply

Tags
alsa, firefox, gentoo, linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Skype drop the support of ALSA (towards pulseaudio)? Xeratul Debian 15 03-19-2015 06:05 PM
[SOLVED] How can I remove pulseaudio and use alsa MooseMagnet Linux - Software 5 05-12-2014 10:12 AM
Alsa to pulseaudio to Alsa - skype only problem Weber Kai Slackware 0 01-27-2012 07:23 PM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
LXer: Mozilla dropping 10.4 support with next Firefox release LXer Syndicated Linux News 0 02-09-2010 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration