Closed lazytiger closed 1 year ago
This is a common issue, because some browsers require a user interaction before you are allowed to play sound. There is a js script you can use to automatically start the audiocontext as soon as the first user interaction happens. See e.g. NiklasEi/bevy_kira_audio#83
Thanks for the reply, this approach is much better.
When I play the sound using
AudioManager::play
, the console prints the following message:How should I play a sound on wasm? Is there an example?