Hi all,
This is a basic test of sound positioning in a 2d space using the PannerNode interface of the webaudio api.
The yellow cone shows where the “player” is listening (inner cone).
Demo and code: https://codepen.io/jjcapellan/pen/MdGxzo/
Click on game screen to activate sound.
Regards.