You are not logged in.

#1 2020-02-29 17:04:15

yourxploit
Member
Registered: 2020-02-29
Posts: 3

[SOLVED] WebAudio API not working in firefox after running pacman -Syu

After updating my computer with pacman -Syu, any website that uses the web audio API to play sound doesn't play anything. Websites like YouTube are able to play sound because it's using HTML5 video/audio, but websites like soundcloud won't play anything. I can see the speaker icon on the tab as if audio is playing, but I can't hear anything.
Not sure if this is an issue with firefox or arch.

Last edited by yourxploit (2020-03-19 18:21:21)

Offline

#2 2020-02-29 17:36:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,428

Re: [SOLVED] WebAudio API not working in firefox after running pacman -Syu

Likely the same issue that changed ALSA PCM listings from the alsa 1.2.2 update, see https://bbs.archlinux.org/viewtopic.php … 7#p1889747 for more information. You could either adjust alsa configuration to not expose these pcms, downgrade alsa-lib, switch to pulseaudio

Online

#3 2020-02-29 20:10:03

yourxploit
Member
Registered: 2020-02-29
Posts: 3

Re: [SOLVED] WebAudio API not working in firefox after running pacman -Syu

I actually fixed it by installing pulseaudio & pulseaudio-alsa. I just copied the default configuration and restarted my computer.

Supposedly firefox doesn't support also according to https://support.mozilla.org/en-US/questions/1209469

Offline

#4 2020-03-01 09:33:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,428

Re: [SOLVED] WebAudio API not working in firefox after running pacman -Syu

Yes, but the Arch package still packages an ALSA compatible firefox. But firefox's ALSA support uses a weird way to try and find the ALSA device and will thus, as those games, hang itself up due to the aplay -L pcm listing changing.

If you are happy with using pulse, mark the thread as [SOLVED] or [WORKAROUND] or so by editing the title in the first post: https://wiki.archlinux.org/index.php/Co … ow_to_post

Online

#5 2020-03-01 10:13:22

blitz
Banned
Registered: 2014-06-14
Posts: 32

Re: [SOLVED] WebAudio API not working in firefox after running pacman -Syu

V1del wrote:

Yes, but the Arch package still packages an ALSA compatible firefox. But firefox's ALSA support uses a weird way to try and find the ALSA device and will thus, as those games, hang itself up due to the aplay -L pcm listing changing.

If you are happy with using pulse, mark the thread as [SOLVED] or [WORKAROUND] or so by editing the title in the first post: https://wiki.archlinux.org/index.php/Co … ow_to_post

# $Id: PKGBUILD 273441 2016-08-07 13:55:46Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Jakub Schmidtke <sjakub@gmail.com>

source=("https://ftp.mozilla.org/pub/mozilla.org/$pkgname/releases/$pkgver/source/$pkgname-$pkgver.source.tar.xz"
        "mozconfig.in"
        "client.mk"
        "client-pgo-gen.mk"
        "client-pgo-package.mk"
        "client-pgo-clobber.mk"
        "client-pgo-use.mk"
        "${pkgname}.desktop"
        "vendor.js"
        "${pkgname}-symbolic.svg"
        "${pkgname}-fixed-loading-icon.png"
        # Serie    00XX: OS and distribution specific patches
        "0010-install-dir.patch"
        "0020-rust-i686.patch"
        # "0030-lld-libxul-check.patch"
        "0040-cargo-mp4-cheddar.patch"
        "0050-linker-timewatch.patch"
        # Serie    0XYY: Generic source code patches
        # "0110-buildconfig-ldflags.patch"
        "0120-wifi-scanner.diff::https://bug1314968.bmoattachments.org/attachment.cgi?id=8807544"
        "0130-Bug-54395-remove-hardcoded-flag-lcrmf.patch"
        "0140-make_SystemResourceMonitor.stop_more_resilient_to_errors.patch::https://reviewboard-hg.mozilla.org/gecko/raw-rev/d9ea4a51e55f"
        "0150-nvidia-GLSL-version.patch::https://reviewboard-hg.mozilla.org/gecko/raw-rev/7fb0d4b57524"
        # "0120-FileSystemDirectoryEntry.patch::https://bug1353765.bmoattachments.org/attachment.cgi?id=8854911"
        # Serie    XYYY: Extra features patches
        # Serie    1YYY: Compiler specific patches
        # Serie    2YYY: LTO patches
        "2010-gcc6-lto-partition-flag.diff::https://bug1258215.bmoattachments.org/attachment.cgi?id=8766692"
        "2020-mozilla-fallible.patch"
        # Serie    25YY: PGO patches
        "2500-pgo-configure-flags.patch"
        "2510-autoconf-linker-pie.patch"
        "2520-gfx-shape-word.patch"
        # Serie    4YYY: Privacy patches
        "4000-configure.patch"
        "4010-telemetry.patch"
        "4040-geolocation.patch"
        "4050-home-newtab-page.patch"
        "4060-push-webnotifications-captive-portal.patch"
        "4070-apps-reader-pocket.patch"
        "4080-social-webrtc.patch"
        # Serie    5YYY: Privacy preferences
        "5000-prefs-common.patch"
        "5010-prefs-telemetry.patch"
        "5020-prefs-network.patch"
        "5030-prefs-safe-browsing.patch"
        "5040-prefs-geolocation.patch"
        "5050-prefs-home-newtab-page.patch"
        "5060${_esr}-prefs-push-webnotifications-captive-portal.patch"
        "5080-prefs-social-webrtc.patch"
        # Serie    6YYY: Enhancements
        "6010-prefs-contextual-identity-containers-e10.patch"
        "6020-prefs-cache.patch"
        "6030-prefs-fonts-gfx-accel.patch"
        "6040-startup-profiler.patch"
        # Serie    7YYY: Packaging
        "7000-package-installer.patch")
MARCH=native

OPT_CFLAGS=O3
OPT_LDFLAGS="${OPT_CFLAGS}"
GCC_GRAPHITE=true
LTO=false
PGO=false
PGO_GEN=false
PGO_USE=false
PGO_DATA_DIR="${BUILDDIR}/pgo_data"

CCACHE=false
GTK3=true

# Linker: GCC or Clang
CLANG=true
# Linker: ld or lld
LLD=false
ac_add_options --enable-necko-wifi=no
ac_add_options --enable-nfc=no
ac_add_options --enable-webrtc=no
ac_add_options --disable-webspeech
ac_add_options --disable-webspeechtestbackend

ac_add_options --enable-gamepad=no # default yes?
ac_add_options --enable-eme=widevine	#adobe
# Release branding
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
ac_add_options --enable-release
ac_add_options --enable-official-branding=no
ac_add_options --prefix=/usr

export MOZ_ADDON_SIGNING=1
export MOZ_REQUIRE_SIGNING=
mk_add_options MOZ_ADDON_SIGNING=1
mk_add_options MOZ_REQUIRE_SIGNING=

# Compiler and linker
ac_add_options --enable-elf-hack=yes
# Replaced with lld
#ac_add_options --enable-gold=yes
ac_add_options --enable-pie=yes
# Errors
# ac_add_options --enable-rust
ac_add_options --enable-pthreads

ac_add_options --enable-jemalloc=4
ac_add_options --enable-replace-malloc

# System libraries
ac_add_options --with-system-bz2
## From firefox-40, using system cairo causes firefox to crash
## frequently when it is doing background rendering in a tab.
## disables videoplay
ac_add_options --with-system-cairo
ac_add_options --with-system-icu
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-png
ac_add_options --with-system-zlib
ac_add_options --enable-libjpeg-turbo	# --with-system-jpeg
ac_add_options --enable-system-ffi
ac_add_options --enable-system-hunspell
ac_add_options --enable-system-pixman
ac_add_options --enable-system-sqlite
ac_add_options --enable-libproxy=no

# Build

ac_add_options --enable-gconf=yes
ac_add_options --enable-gio=yes
# ac_add_options --enable-gnomeui=yes

# Features
ac_add_options --disable-js-shell
ac_add_options --enable-extensions=default
ac_add_options --enable-startup-notification
ac_add_options --enable-crashreporter=no
ac_add_options --with-crashreporter-enable-percent=0
ac_add_options --enable-maintenance-service=no
ac_add_options --enable-parental-controls
ac_add_options --enable-safe-browsing=no
ac_add_options --enable-url-classifier=no
ac_add_options --enable-updater=no
ac_add_options --enable-update-channel=''

# Tests and debug
mk_add_options MOZ_DEBUG=0
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-ipdl-tests
ac_add_options --enable-debug-js-modules=no
ac_add_options --disable-debug-symbols
# ac_add_options --disable-gps-debug
ac_add_options --disable-profiling

# Package
mk_add_options STRIP_FLAGS="--strip-debug"
ac_add_options --enable-strip=yes
ac_add_options --enable-install-strip=yes
ac_add_options --enable-signmar=no
ac_add_options --enable-verify-mar=no

# Features
ac_add_options --enable-sandbox=yes
# Breaks everything
# ac_add_options --enable-content-sandbox=yes
ac_add_options --enable-bundled-fonts=yes
ac_add_options --enable-b2g-bt=no
ac_add_options --enable-b2g-camera=no
ac_add_options --enable-b2g-ril=no
ac_add_options --enable-mozril-geoloc=no
ac_add_options --disable-gpsd

ac_add_options --enable-necko-wifi=no
ac_add_options --enable-nfc=no
ac_add_options --enable-webrtc=no
ac_add_options --disable-webspeech
ac_add_options --disable-webspeechtestbackend

ac_add_options --enable-gamepad=no # default yes?
ac_add_options --enable-eme=widevine	#adobe
ac_add_options --enable-alsa
ac_add_options --enable-jack
ac_add_options --enable-ffmpeg
ac_add_options --enable-fmp4

ac_add_options --enable-jack
ac_add_options --enable-ffmpeg
ac_add_options --enable-fmp4

ac_add_options --enable-alsa

Edit:
https://i.imgur.com/urcftb6.png

Last edited by blitz (2020-03-01 13:19:21)

Offline

#6 2020-03-23 22:34:58

latalante1
Member
Registered: 2018-08-30
Posts: 110

Re: [SOLVED] WebAudio API not working in firefox after running pacman -Syu

Nearly a month later...

someone else also noticed that WebAudio doesn't work under firefox with alsa,
and even reported an error.
https://bugzilla.mozilla.org/show_bug.cgi?id=1624110

Offline

Board footer

Powered by FluxBB