Skip to Main Content
Advanced Game Design with HTML5 and JavaScript
book

Advanced Game Design with HTML5 and JavaScript

by Rex van der Spuy
May 2015
Intermediate to advanced content levelIntermediate to advanced
552 pages
14h 38m
English
Apress
Content preview from Advanced Game Design with HTML5 and JavaScript
© Rex van der Spuy 2015
Rex van der SpuyAdvanced Game Design with HTML5 and JavaScript10.1007/978-1-4302-5801-8_9

9. Sound with the Web Audio API

Rex van der Spuy
(1)
Ontario, Canada
 
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Responsive Web Design with HTML5 and CSS - Fourth Edition

Responsive Web Design with HTML5 and CSS - Fourth Edition

Ben Frain

Publisher Resources

ISBN: 9781430258018Supplemental Content