howler.js – Modern Web Audio Javascript Library

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
howler.js source (GitHub) →

Elsewhere , ,

3 Responses to howler.js – Modern Web Audio Javascript Library

  1. Pingback: Deleting Borders | Bram.us

  2. Pingback: Listen to Wikipedia | Bram.us

  3. Pingback: audio-effects – Create Audio Effects Using the Web Audio API | Bram.us

Leave a Reply

Your email address will not be published. Required fields are marked *