📜  绘制循环中的 playSound javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:05.635000             🧑  作者: Mango

代码示例1
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}); }