phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Audio is not spatial when playing in Firefox

Open starry-abyss opened this issue 10 months ago • 1 comments

  • Phaser Version: 3.60
  • Operating system: macOS Ventura 13.5.2
  • Browser: Firefox 118.0.1

Description

Audio is spatial in Chrome and Safari, but not in Firefox

Example Test Code

Please run this demo, by clicking the lowest text (it's a button): https://starry-abyss.github.io/find_the_black_cat/

When you move the mouse, all sounds all spatial relative to the mouse (but not in Firefox).

The source code is viewable in the browser.

Additional Information

Firefox console says:

An AudioContext was prevented from starting automatically. It must be created or resumed after a user gesture on the page.

But I think this shouldn't be the cause, as sound itself works, it's just not spatial

And also, the issue was discovered on Windows, so shouldn't be OS-specific.

starry-abyss avatar Oct 11 '23 02:10 starry-abyss

~Is your example still working? I don't hear anything from that webpage in any browser.~

nvm, i found the button :)

paxperscientiam avatar Dec 05 '23 05:12 paxperscientiam

We've taken the decision to recode the Phaser Audio system from scratch and replace the existing one. This will remove the division between Web Audio and HTML Audio (you'll be able to have both together), along with lots of other required features and API updates. Development work will start in Q2 2024. As a result, we are going to mothball all audio-related issues rather than try to monkey-patch solutions in.

photonstorm avatar Feb 20 '24 15:02 photonstorm