[Phil Lelyveld comment: this article is a deep dive into HTML5 coding.]
SUMMARY
In this article you learned how to add positional audio to your 3D scenes using the Web Audio API. The Web Audio API gives you a way to set the position, orientation and velocity of audio sources and the listener. By setting those to track the objects in your 3D scene, you can create a rich soundscape for your 3D applications.
To make the audio experience even more compelling, you can use the ConvolverNode in the Web Audio API to set up the general sound of the environment. From cathedrals to closed rooms, you can simulate a variety of effects and environments using the Web Audio API.
Read the full post here: http://www.html5rocks.com/en/tutorials/webaudio/positional_audio/