Hi, I’ve set up audio in my game to play a sound when the user swipes the screen and when objects collide.
The issue I’m facing is that sometimes the sound plays, and other times it doesn’t.
Here’s the code I’m using:
ecs.Audio.set(world, eid, {
volume: 1,
url: 'myUrl',
positional: false,
})
Am I doing something wrong?
I’ve already shared the project with support (it’s the same one I submitted previously).
That looks correct, are there any errors in the console?
And you’ve captured a user gesture before playing sounds correct? I can try to repro the issue as well. Which browser and device are you using?
Correct. I play a sound after the user swipes and when two objects collide; which happens a lot in my game. 
I have an iPhone 11, and I tested this in both Safari and Chrome.
I am also having problems with sound working at all. I just added a looping sound to an object and it works perfectly on the simulator but not on the phone. Hopefully George can fix 
1 Like
Yes, I’ve noticed the issue happens more on my phone too. Glad to know I’m not the only one experiencing it. 