/webaudio.js

web audio library for games

Primary LanguageJavaScript

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();
});