[ports][fix] firefox & firefox-esr : OSS

Phil Krejci Kphil at protonmail.com
Tue Dec 1 10:59:38 UTC 2020


Hi,
The bug mention in https://forums.freebsd.org/threads/how-to-use-microphone-with-firefox.74292/ is still up. But I fixed it and the solution is very simple, so if you could add it by default in firefox port it could be cool for everyone.

Problem
        Firefox won't use OSS as backend audio server.
Observation
        There's a project created by Firefox that is crossplateform https://github.com/kinetiknz/cubeb.
        Cubeb is already used in Firefox but it doesn't well configured.
        Cubeb is maintained for BSD/Illumnos OSS system as shown there :
        https://github.com/kinetiknz/cubeb/commit/226d383c136b8586b69b74f420a5afc8b243cf49
        https://github.com/kinetiknz/cubeb/wiki/Backend-Support
        where OSS is in tier-2
Fix
        so simply add in the default  about:config  these lines :

media.cubeb.backend                             oss
media.cubeb.input_voice_routing                 true

        and the rest is already configured, check that the line is already there :

media.cubeb.output_voice_routing                true

Usability
        when the user use microphone the proposition let you the choice to use /dev/dspX
        As in the good old days.

PS : I fixed it on firefox-esr

Best regards,
Philippe Krejčí

Sent with ProtonMail Secure Email.


More information about the freebsd-gecko mailing list