Sound with the Web Audio API

  • Rex van der Spuy


HTML5 has two different systems for playing sounds: the older HTML5 Audio element and the newer Web Audio API. Which one should you use? For games, use the incredibly powerful Web Audio API. It loads sounds reliably, lets you play multiple sounds at the same time, and gives you precise playback control. In addition, it lets you apply effects, create your own synthesized sounds, and specify different kinds of input and output sources. Once you get over the small learning curve, you'll be able to use the Web Audio API to quickly create any kind of sound system you can imagine.


Audio File Sound Effect Sound File Delay Loop Playback Rate 

Copyright information

© Rex van der Spuy 2015

Authors and Affiliations

  • Rex van der Spuy
    • 1
  1. 1.OntarioCanada

Personalised recommendations