mdn / webaudio-examples

Code examples that accompany the MDN Web Docs pages relating to Web Audio.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
Creative Commons Zero v1.0 Universal
1.28k stars 432 forks source link

Update spatialization to modern JS #78

Closed teoli2003 closed 2 years ago

teoli2003 commented 2 years ago

This is part of our project to update code to a more modern JS syntax.

This PR updates the spatialization example:

In addition:

Tested on Firefox, Safari, and Chrome (macOS) via a local server.