HTML and CSS Reference
What Is the Web Audio API?
The Web Audio API uses the XMLHttpRequest() functionality of the web browser to load a
sound as an array of binary bytes that is decoded into an audio buffer and then used to play
your sound. An audio buffer is a memory-resident copy of your sound. It remains in memory,
copies, using up precious memory. There is no need to create multiple copies of an audio ob-
efficient way to play audio clips in games and applications.
The Web Audio API specifies that it should be used for short sounds and audio clips, but music and
longer audio should be streamed with the Audio element.