sound in firefox without alsa emulation?

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

adcdam
New Member
Posts: 4
Joined: Wed Dec 18, 2019 4:03 am
Sound Card: asus xonar
OS: gentoo

sound in firefox without alsa emulation?

Postby adcdam » Sun Jan 05, 2020 6:44 pm

hi is there a way to get sound in firefox using 0ssv4 without installing alsa and pulseaudio?

adcdam
New Member
Posts: 4
Joined: Wed Dec 18, 2019 4:03 am
Sound Card: asus xonar
OS: gentoo

Re: sound in firefox without alsa emulation?

Postby adcdam » Wed Jan 08, 2020 5:11 am


Nexus
New Member
Posts: 4
Joined: Sun Sep 16, 2018 8:14 pm
Sound Card: M-audio Delta 44, Ap 2496
OS: Xubuntu 18.04

Re: sound in firefox without alsa emulation?

Postby Nexus » Sat Jan 11, 2020 11:37 pm

Seems like the patch hasn't been added to Firefox in three years time and the bug report is still open. So I'd guess it doesn't work then. Shame.

I circumvent the lack of features in Firefox like OSS support and hardware accelerated video by using mpv media player with the Open With extension. Mpv can hook up to pretty much any decent source with youtube-dl installed on a system.

rjackson
New Member
Posts: 1
Joined: Wed Jan 10, 2018 11:10 am
Sound Card: Intel PCH
OS: Debian

Re: sound in firefox without alsa emulation?

Postby rjackson » Mon Jan 13, 2020 12:41 pm

I used the attached patches until a year ago, which I originally obtained via the firefox bugzilla and cubeb github repo.

You need to set the pref 'security.sandbox.content.read_path_whitelist' to '/dev/dsp' in order to hear anything, and things work best if the oss4 resampler is enabled.

I can't attach more than three files on here, so the fourth is in text below.......
Moderation note: FTFY
Attachments
0001-oss-disable-alsa.patch.txt
(19.75 KiB) Downloaded 105 times
0002-oss-enable.patch.txt
(5.08 KiB) Downloaded 105 times
0003-cubeb_oss_c.patch.txt
(12.3 KiB) Downloaded 110 times
0004-oss-add-assert.patch.txt
(885 Bytes) Downloaded 109 times
Last edited by nuc on Wed Jan 15, 2020 9:22 pm, edited 1 time in total.
Reason: Mod: Attach 4th patch

donroc
New Member
Posts: 5
Joined: Mon Mar 04, 2013 9:15 pm

Re: sound in firefox without alsa emulation?

Postby donroc » Mon Mar 02, 2020 1:34 pm




I just applied the patch (28.8.4) and it works fine at least with palemoon (firefox based browser).
Note I did have to pass mozconfig_disable alsa when compiling to disable alsa being included, but oss gets selected then.


Return to “Linux”

Who is online

Users browsing this forum: Google [Bot] and 5 guests