Hi guys,
I’m seeing a weird behaviour here in regards to the audio engine when the game runs on mobile web browsers ( safari and chrome).
I’ve attached a test project which can be used to reproduce this. When the game first loads after entering the url, do not interact with the canvas in the browser, the sound would not start playing, the sound will only start playing when the user touches the canvas. If the the game tries to call audioengine to stop the sound when it is in this state, audioengine would ignore this command.
In this test scenario, I’m playing a sound in one scene, and then stopping the music before navigating to another. In the other scene, I would play a different sound on load. In such a case whereby the user does not interact with the game before the scene transition, there would be two sounds overlapping each other when the sound does start playing.
Has anyone a solution to this problem?
assets.zip (100.2 KB)
regards,
Kevin