Howto play sound w/Firefox Quantum & ALSA W/O Pulseaudio:

Forum Forums General Tips and Tricks Howto play sound w/Firefox Quantum & ALSA W/O Pulseaudio:

  • This topic has 4 replies, 3 voices, and was last updated Mar 6-4:54 am by sleekmason.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7311
    Member
    wildstar84

      After several months and much googling, I finally found a way to get modern Firefox to play sound using just ALSA WITHOUT Pulseaudio (I hate Pulseaudio and refuse to install it)!:

      Steps to enable modern Firefox (Quantum) to play sound WITHOUT PulseAudio
      and WITHOUT recompiling from source (Known to work w/latest v58.0.2 on Antix):

      1) apt-get install apulse

      2) apt-get install patchelf

      3) In Firefox: about:config
      change: security.sandbox.content.level from “3” to “2”
      change: security.sandbox.content.syscall_whitelist from “” to “16” (if 64bit)
      or to “54” (if x86/32bit)!
      change: security.sandbox.content.write_path_whitelist from “” to “/dev/snd/,/etc/asound.conf”
      If using a local .asoundrc file: to “/dev/snd/,/etc/asound.conf”,
      If not using an asoundrc file: to “/dev/snd/”.

      4) (MUST ALSO BE REPEATED AFTER EACH FIREFOX UPDATE!!!):
      patchelf –set-rpath /usr/lib/apulse libxul.so

      5) RUN FIREFOX FROM A SCRIPT THAT ADDS “/usr/bin/apulse “:
      /usr/bin/apulse /usr/bin/firefox.real &

      LINKS:

      http://steemit.com/linux/@crokkon/firefox-and-alsa-sound-without-pulseaudio
      http://github.com/i-rinat/apulse
      http://github.com/i-rinat/apulse/issues/64

      • This topic was modified 6 years, 2 months ago by anticapitalista.
      • This topic was modified 6 years, 2 months ago by wildstar84.
      #7340
      Anonymous

        appreciate you caring to share, but [redacted — the “typo” above has been fixed]

        #7357
        Member
        wildstar84

          Oops – that was left from my own notes, forgot to change it for the post, fixed now!

          Jim

          #7361
          Anonymous

            no pulseaudio on this box at the moment to test, but you have my vote for tip-of-the-month !

            #7371
            Member
            sleekmason

              Nice tip! Thank you for sharing!

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.