Most HTML5 games use the AudioContext API to play music and SFX. However, since at least Firefox 74, I get only the mute button on the tab bar but no sound from such games with USE="-pulseaudio". I can reproduce the issue with this snippet of JavaScript: var ctx = new window.AudioContext(); var elem = new Audio('some_file.mp3'); var track = ctx.createMediaElementSource(elem); track.connect(ctx.destination); elem.play(); The above snippet will produce a mute button on the tab bar but no sound. On the other hand, the following simplified snippet will play audio just fine: var elem = new Audio('some_file.mp3'); elem.play(); After rebuilding Firefox with USE="pulseaudio" and linking it with media-sound/apulse, both snippets work correctly. Even if this issue doesn't get fixed anytime soon, the ebuild should at least print a warning. Reproducible: Always Steps to Reproduce: 1. Open a page that plays audio using AudioContext API Actual Results: No sound Expected Results: Sound
Possibly? related links for reference: https://forums.gentoo.org/viewtopic-t-1110868.html https://bugzilla.mozilla.org/show_bug.cgi?id=1624110 Which is also firefox 74+ I'd guess could force apulse for alsa as a "solution" (I imagine native alsa support will keep degrading in firefox until complete removal unless Mozilla changes stance), or at least until firefox fixes it.
do you report this for www-client/firefox-74.0.1? Have you tried www-client/firefox-75 too?
Yes, same results on www-client/firefox 74 and 75.
I wouldn't force apulse as long as Alsa works. One site with a problem isn't really a problem, I'm sure there are people who don't care about that site. USE flag 'apulse' could be optional though.
There are more sites and number will probably increase. But I don't like apulse as well. I had to use with old Skype an it was pain. Sound works, but KDE session management always started Skype without apulse so I had to re-run it with apulse.
I don't know what to do with this bug. What is the issue? What do you want us to do? Is this still a problem with latest www-client/firefox-78.3.1 or newer?
(In reply to Thomas Deutschmann from comment #6) > I don't know what to do with this bug. What is the issue? What do you want > us to do? Is this still a problem with latest www-client/firefox-78.3.1 or > newer? I can confirm similar problems with firefox 78.4.0. And yes, there is something that you, as the ebuild developer, can do, but I was not sure if it fitted 100% here, so I put my suggestion in a new bug: https://bugs.gentoo.org/752387 .
(In reply to Thomas Deutschmann from comment #6) > I don't know what to do with this bug. What is the issue? What do you want > us to do? Is this still a problem with latest www-client/firefox-78.3.1 or > newer? Yes, the bug is still present in www-client/firefox-83.0 as well. The least you could do is add a warning (ewarn) that audio may not work on some websites if firefox is built with -pulseaudio.