Skip to content

Instantly share code, notes, and snippets.

@filipmares
Created December 5, 2014 01:02
Show Gist options
  • Save filipmares/aed95d20e3bf462759af to your computer and use it in GitHub Desktop.
Save filipmares/aed95d20e3bf462759af to your computer and use it in GitHub Desktop.
Howler
// Create a sound with fallback sound files
var sound = new Howl({
urls: ['sound.mp3', 'sound.ogg']
});
// Play sound
sound.play();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment