--- url: "https://web.dev/articles/webaudio-games" titulek: "Developing game audio with the Web Audio API | Articles | web.dev" h1: "Developing game audio with the Web Audio API Stay organized with collections Save and categorize content based on your preferences." popis: "" jazyk: "en" kanonicka: "https://web.dev/articles/webaudio-games" drobecky: ["Articles", "Developing game audio with the Web Audio API"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:55:16" znaku: 20257 slov: 2988 kodovani: "iso-8859-2" sha256: "3a2d9adf72e940f06ce002fce17d347fdb85593fd53a959e7a2748bffcc1db59" --- Developing game audio with the Web Audio API Stay organized with collections Save and categorize content based on your preferences. Boris Smus Introduction Audio is a huge part of what makes multimedia experiences so compelling. If you've ever tried watching a movie with the sound off, you've probably noticed this. Games are no exception! My fondest video game memories are of the music and sound effects. Now, in many cases nearly two decades after playing my favorites, I still can't get [Koji Kondo](http://en.wikipedia.org/wiki/Koji_Kondo)'s Zelda [compositions](http://www.youtube.com/watch?v=4qJ-xEZhGms) and [Matt Uelmen](http://en.wikipedia.org/wiki/Matt_Uelmen)'s atmospheric [Diablo soundtrack](http://www.youtube.com/watch?v=Q2evIg-aYw8) out of my head. The same catchiness applies to sound effects, such as the instantly recognizable unit click responses from Warcraft, and samples from Nintendo's classics. Game audio presents some interesting challenges. To create convincing game music, designers need to adjust to potentially unpredictable game state a player finds themselves in. In practice, parts of the game can go on for an unknown duration, sounds can interact with the environment and mix in complex ways, such as room effects and relative sound positioning. Finally, there can be a large number of sounds playing at once, all of which need to sound good together and render without introducing performance penalties. Game Audio on the Web For simple games, using the `