DEV Community

loading...
Cover image for Edaqa's Room: Sound and Music using WebAudio

Edaqa's Room: Sound and Music using WebAudio

mortoray profile image edA‑qa mort‑ora‑y ・1 min read

Today I show you how I use Web Audio to add sound effects and music to my game.

  • Creating AudioContext
  • Loading sounds with XMLHttpRequest and decodeAudioData
  • Creating and playing buffers with createBufferSource
  • Using the Audio element for music
  • Fade in/out

Edaqa's Room: Dev.to Special

Twitch Channel
YouTube Channel

--

All about the development of technology, graphics, and puzzles for my online escape and puzzle games. I'll show you how all the pieces work, how I design the games, and likely lots of poking fun at the Web.

Discussion (0)

pic
Editor guide