DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,873 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Edaqa's Room: Sound and Music using WebAudio
edA‑qa mort‑ora‑y
edA‑qa mort‑ora‑y

Posted on

Edaqa's Room: Sound and Music using WebAudio

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.

Top comments (0)

🌚 Life is too short to browse without dark mode