var sound = new Howl({ urls: [‘sounds.mp3’, ‘sounds.ogg’], sprite: { blast: [0, 2000], laser: [3000, 700], winner: [5000, 9000] } }); // shoot the laser! sound.play(‘laser’); howler.js defaults to Web Audio API and uses HTML5 Audio as the fallback. The library greatly simplifies the API and handles all of the tricky bits automatically howler.js → …
Continue reading “howler.js – Modern Web Audio Javascript Library”