Skip to content

CrazyTim/mario-soundboard

Repository files navigation

thumbnail

Mario Soundboard

A fun unofficial sound-effects app. I made this so my kids could have sound-effects and music when playing the Monopoly Gamer board game. Collecting coins from the bank has never sounded so good!

Its a small showcase of the amazing sounds and icons of the Mario franchise.

View the live version here.

Getting Started

Host the files on a web server, or if you have Node.js run:

npm init
npm start

Limitations

  • We need to pre-load audio so sounds will play instantly as soon as they are clicked (with no buffering or loading). A good way to do this is to begin loading all audio async when the app loads and disable each button until it's audio has loaded. HTML5 Audio doesn't guarantee pre-load, so we must use Web Audio API.
  • Mp3 files can't loop seamlessly (see reddit, stackoverflow, and here), so another format needs to be used for looping sounds, such as WebM or Ogg. Refer to MDN for more info about audio codecs and containers.

Acknowledgements

Audio:

Images: