No audio in web export?

Godot Version

Godot 4.6.1

Question

I only recently began exporting my game for web, and had to make a few changes for the “user must initiate sound” warning.

The game now runs in browser, with no warnings, but there’s no audio. Since there are no error messages, I’m not sure what else even to write. Are there any common pitfalls like this that anyone knows about?

Depends on the browser and the device.
Some browsers will not play any sound until the player actively interacts with the page that wants to play audio.
On iOS specifically, if you have “Silence” mode on, that will also completely silence games, including browser games.

1 Like

Yeah, that’s the warning I had to deal with. Now that I no longer get it, any idea why there’s still no audio? It’s the same in Chrome / Brave and Edge, any sense in testing more browsers?

I solved it by creating audio buses in the editor rather than in code, for some reason that did the trick. Now I’m getting audio, but my effects aren’t working, the code can’t seem to find them at their idx’s. I also still aren’t getting audio on itch.io, only when running a local web build.