Hi. I noticed something weird about this playground demonstrating audio play on click.
This is from the documentation about handling audio files with babylon here.
The thing is that the sound plays only when you click outside of the canvas. That seems a little odd, since the whole point is to use it within a Babylon environment, right ? Wouldn’t it be more appropriate if the sound played on a pointerDownObservable() callback instead of a window.eventListener ?
(also the gunshot plays each time you click somewhere to edit the playground, and this kind of gets old real fast )
I’d submit a PR but wanted to hear some opinions first.