apulse icon indicating copy to clipboard operation
apulse copied to clipboard

Thank you for this

Open SoniEx2 opened this issue 8 years ago • 10 comments
trafficstars

With Firefox 52+ dropping ALSA, thank you so much for this! This might be the only way to still use Firefox with ALSA.

SoniEx2 avatar Jun 05 '17 02:06 SoniEx2

This might be the only way to still use Firefox with ALSA.

It should be possible to make own build of Firefox with ALSA support enabled. As far as I know, there are no plans to remove ALSA code from libcubeb library, which is used by Firefox to play audio.

i-rinat avatar Jun 05 '17 10:06 i-rinat

With Firefox 54 it is no longer possible to turn on ALSA support.

worldowner avatar Jun 16 '17 15:06 worldowner

With Firefox 54 it is no longer possible to turn on ALSA support.

Just tried to build Firefox 54 from source with the following .mozconfig:

ac_add_options --enable-alsa
ac_add_options --disable-tests

Audio works without PulseAudio, by directly using ALSA. There is no need to disable sandboxing or something like that. In ALSA-enabled builds, paths required by userspace part of ALSA are in exception list already. So, it should work. What are your build options?

i-rinat avatar Jun 17 '17 20:06 i-rinat

It doesn't work when you have browser.tabs.remote.force-enable = true. There is no sound. When this option is set to false it works.

worldowner avatar Jun 19 '17 06:06 worldowner

It doesn't work when you have browser.tabs.remote.force-enable = true.

I tested once again, now with this option set. Audio still works. Actually, that option did nothing, since I'm testing on an empty profile, so multiprocess mode is enabled.

@worldowner, how do you build Firefox? Are you sure you have --enable-alsa option set?

i-rinat avatar Jun 19 '17 16:06 i-rinat

about:support says: Audio Backend alsa

so yes, I'm sure. I took PKGBUILD from Archlinux's abs, added ac_add_options --enable-alsa ac_add_options --disable-tests

and recompilled (makepkg) inside virtual machine (because I have access to powerful servers). I'm running this build on 2 different computers, one Intel based laptop, second AMD based desktop and result is the same. No sound when browser.tabs.remote.force-enable = true

It's enough to set this to false and restart Firefox to get sound back.

I double checked that just a minte ago.

worldowner avatar Jun 19 '17 22:06 worldowner

sets browser.tabs.remote.autostart to false, restarts firefox... nope didn't work... in fact, I can't seem to be able to set that to false, it just creates a new key with .2 at the end, set to true...

sets browser.tabs.remote.autostart.2 to false, restarts firefox... CAN HEAR AGAIN

EDIT: don't do this. this technically disables the sandbox. instead, see #55.

SoniEx2 avatar Jun 19 '17 23:06 SoniEx2

@i-rinat Thanks for apulse! It's not always possible to build firefox from source, though, so apulse really helps here and with skype. Спасибо.

jjdredd avatar Jun 28 '17 15:06 jjdredd

Just want to add another thank you. Will give me some time to run away from Firefox.

tkas avatar Jul 12 '17 12:07 tkas

Another thank you for this project! I rebuilt Firefox with ALSA support on Gentoo, but it wasn't picking up the audio I/O settings other than the sample rate. apulse allows Firefox to pick-up an output device, though the sample rate is incorrect, which that is corrected with the plug interface.

mbilker avatar Jan 30 '18 04:01 mbilker