I know audio problems with Firefox on Rapbian are not a novel thing, but I tried all the suggestion on other threads and these do not seem to work. So here is what I am experiencing. With the current project, I'm stuck with Firefox because it turned out to be the most stable and best rendering browser for this particular instance.(Also I do not like Chrom(e)(ium))
I'm running the latest Raspbian on a pi4 4gb model. As stated, I want to use Firefox-esr for a variety of reasons.
Adding simple html5 audio to the project worked fine on the macbook with firefox quantum. Triggering the play() function started the sound immediately.
On Raspbian however, the sound is mostly not there or just intermittently and partially. You can click the play button on a audio control bar randomly and sometimes you hear a bit of the sample.I have tried OGG, MP3 and WAV and all behave the same way. Firefox just won't predictably start playing. The control bar starts playing immediately and the audio icon appears immediately as well, so Firefox thinks it is playing the sample, it just isn't audible most of the time and when it is, it is only the last part of the sample.
On that blasted Chromium that works fine as expected. So the audioStack of Raspbian is seeminly fine, Firefox IS able to output audio to the mixer, but it just lags or does something that mutes it most of the time. I've messed about in about:config, but nothing really changes this odd behaviour.
The same also happens on the W3C example page for web audio.
Any ideas? I can't find anything on the web that worked so far.