jeromeetienne / webaudio.js

web audio library for games
http://jeromeetienne.github.com/webaudio.js
98 stars 15 forks source link

library on top of Web Audio API. It is a direct adaptation of tQuery.Webaudio.

Examples

Basic examples

// init the library
var webaudio = new WebAudio();
// create a sound
var sound = webaudio.createSound();
// load sound.wav and play it
sound.load('sound.wav', function(sound){
    sound.play();
});