Sound effects html5 canvas
I'm trying to learn the soundJS in order to add an effect on loading a frame. Struggling to get it to work.
Is there a particular method for html5 to add sound effects as in actionscript format?
I've tried the following without success:
createjs.Sound.on("fileload", this.loadHandler, this);
createjs.Sound.registerSound("Blop.wav", "bloop");
function loadHandler(event) {
// This is fired for each sound that is registered.
var instance = createjs.Sound.on("bloop");
instance.on("complete", this.handleComplete, this);
instance.volume = 0.5;
}