Answers for "playSound in draw loop javascript"

-1

playSound in draw loop javascript

createjs.Sound.on("fileload", handleLoad);createjs.Sound.registerSound("sounds/youraudio.mp3", "myID", 3); function handleLoad(event) { createjs.Sound.play("myID");  // store off AbstractSoundInstance for controlling  var myInstance = createjs.Sound.play("myID", {interrupt: createjs.Sound.INTERRUPT_ANY, loop:-1}); }
Posted by: Guest on January-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language