Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[Solved] Firefox support for ALSA audio _input_

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
33 posts
  • Previous
  • 1
  • 2
Author
Message
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Fri Jun 28, 2024 8:51 am

I still don't know, for example, how to get a 24bit/96kHz audio stream from Qobuz to my DAC, without it being downsampled by Pulse.
I don't know either, and it might not even be possible, since professional audio is not their focus.
It should work with jack and pipewire though. I won't tell you how to do that, because it's not my focus either, but I think I read something about that in either PW's FAQ or it's design documentation, so there's a good chance PA simply wasn't a suitable tool for the task.
As for application development, yeah, I fully understand why it's a drain on resources, to support multiple audio frameworks. But here's the thing: if you support ALSA, you support everything else as well, because there are ALSA plug-ins to adapt to everything else
Yes, this is great. Pretty much none of the apps I use support jack, yet the whole audio setup work just fine. Very convenient.
Make Pipewire a system service
Top
RIA77
Guru
Guru
Posts: 425
Joined: Wed Feb 24, 2016 4:52 am

Re: [Solved] Firefox support for ALSA audio _input_

  • Quote

Post by RIA77 » Sat Jun 29, 2024 2:43 pm

lars_the_bear wrote:Hi folks

I'm aware that Firefox doesn't want to support direct ALSA audio. But, building with "USE=alsa -pulsaudio..." does result in something that works -- at least for playback.

But I get no audio _input_ which, of course, is essential for Zoom, etc. It's not that I get an error message -- it's just as if the audio input is muted, or its recording from a different source.

I find that 'arecord xxx' works fine, either with the default device or if I set the specific ALSA device. I've gone to alsamixer and turned all the volume sliders up to maximum, but it makes no difference.

Given firefox's general lack of support for ALSA, I'm not entirely surprised that it doesn't work. But has anybody else tried it?

I thought I had identified all the show-stoppers that would prevent me adopting ALSA as my day-to-day platform, but I hadn't thought about this one. If I can't run Zoom, I've have to go back to Fedora :/

I'm willing to try a different browser but (for different reasons) neither Chromium nor Google Chome will install.

BR, Lars.
It works with pure alsa.
I used firefox with alsa.
Just put "alsa" in make conf, and adjust your soundcard.

Code: Select all

Find your desired card with:

   cat /proc/asound/cards
and then create /etc/asound.conf with following:

	   defaults.pcm.card 1
	   defaults.ctl.card 1
Emerge volumeicon.

And it just works.
Top
lars_the_bear
Guru
Guru
Posts: 537
Joined: Wed Jun 05, 2024 7:04 am

Re: [Solved] Firefox support for ALSA audio _input_

  • Quote

Post by lars_the_bear » Sun Jun 30, 2024 7:04 am

RIA77 wrote:.
And it just works.
I'm sorry to report that it didn't just work for me. The 'alsa' build of Firefox would do output, and not input. And it didn't respect ALSA defaults for either input or output -- it always output to 'card 0'. There's an environment variable with a name something like ALSA_PCM_CARD that does work -- but only for output.

Maybe other releases of Firefox behave better?

But apulse does seem to work, both for output and input. I haven't tried it on Gentoo yet, because my Firefox build doesn't have any Pulse support. But I tried it on an Ubuntu system that I purged Pulse from, and it worked fine.

So probably what I need to do is to (sigh) build Firefox with Pulse support, and use apulse with it. But I guess there might be a binary version of this somewhere that I could use, and avoid another two days of compiling.

Still, I am annoyed (at Firefox, not Gentoo) because I am trying to solve a problem that has absolutely no reason to exist. The Firefox maintainers should hang their heads in shame.

BR, Lars.
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3074
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

Re: [Solved] Firefox support for ALSA audio _input_

  • Quote

Post by Chiitoo » Sun Jun 30, 2024 11:30 am

lars_the_bear wrote:So probably what I need to do is to (sigh) build Firefox with Pulse support, and use apulse with it. But I guess there might be a binary version of this somewhere that I could use, and avoid another two days of compiling.
Did you try running the ALSA-only build via apulse yet?

Also are there any ALSA related messages when running Firefox via a terminal emulator, and then running the web application of interest?

I suppose I can try building it today myself.
Kindest of regardses.
Top
lars_the_bear
Guru
Guru
Posts: 537
Joined: Wed Jun 05, 2024 7:04 am

Re: [Solved] Firefox support for ALSA audio _input_

  • Quote

Post by lars_the_bear » Sun Jun 30, 2024 12:11 pm

Chiitoo wrote:
lars_the_bear wrote: Did you try running the ALSA-only build via apulse yet?
Not so far, to be honest -- I just assumed it wouldn't work without Pulse support.

It won't take me long to try -- I just haven't gotten around to it yet.

BR, Lars.
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3074
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Sun Jun 30, 2024 2:21 pm

I gave it a spin, and with USE="-pulseaudio" playback indeed works with or without apulse, but recording does not.

I can change the playback device via '.asoundrc' but it really does not seem to care what I set as a capture device (even if non-existent, there are no error messages produced).

With USE="pulseaudio" (and apulse built with USE="sdk" so no need for media-libs/libpulse and friends), I start seeing the same errors as with www-client/firefox-bin, so I think that could potentially work if given suitable configuration to it.
Kindest of regardses.
Top
lars_the_bear
Guru
Guru
Posts: 537
Joined: Wed Jun 05, 2024 7:04 am

  • Quote

Post by lars_the_bear » Sun Jun 30, 2024 3:45 pm

Chiitoo wrote:I gave it a spin, and with USE="-pulseaudio" playback indeed works with or without apulse, but recording does not.

I can change the playback device via '.asoundrc' but it really does not seem to care what I set as a capture device (even if non-existent, there are no error messages produced).
That's essentially what I saw. Thank you for confirming that I'm not just losing my marbles.

I tried Bluetooth-enabled Firefox with apulse on Ubuntu (stripped of Pulse) and it works fine. I'm reasonably confident that it will work on Gentoo, but trying it hasn't come to the top of my to-do list just yet.

BR, Lars.
Top
powerman
n00b
n00b
Posts: 22
Joined: Sun Dec 21, 2003 7:06 pm
Location: Kharkov
Contact:
Contact powerman
Website

  • Quote

Post by powerman » Thu May 15, 2025 1:07 pm

Chiitoo wrote:With USE="pulseaudio" (and apulse built with USE="sdk" so no need for media-libs/libpulse and friends), I start seeing the same errors as with www-client/firefox-bin, so I think that could potentially work if given suitable configuration to it.
Not sure is this because of valid ALSA configuration or because of newer firefox version but for me both firefox-bin (as is) and firefox (with USE="pulseaudio" and apulse built with USE="sdk") works just fine with microphone! I'm starting just `firefox`, not `apulse firefox`.

Anyway, thanks a lot of the hints about these USE flags in this thread!
WBR, Alex
Top
Post Reply

33 posts
  • Previous
  • 1
  • 2

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic