You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NOTE the "|" character is used by Sound to separate source into distinct files, which allows you to provide multiple extensions for wider browser support
77
77
78
+
createjs.Sound.alternateExtensions=["mp3"];// add other extensions to try loading if the src file extension is not supported
78
79
//createjs.Sound.onLoadComplete = playSound; // add a callback for when load is completed
79
80
createjs.Sound.addEventListener("fileload",playSound);// add an event listener for when load is completed
80
81
createjs.Sound.registerSound(src);// register sound, which preloads by default
// NOTE the "|" character is used by Sound to separate source into distinct files, which allows you to provide multiple extensions for wider browser support
100
100
101
101
this.displayStatus.innerHTML="Waiting for load to complete.";// let the user know what's happening
102
102
// NOTE createjs.proxy is used to apply scope so we stay within the touch scope, allowing sound to play on mobile devices
// NOTE the "|" character is used by Sound to separate source into distinct files, which allows you to provide multiple extensions for wider browser support
115
115
116
+
createjs.Sound.alternateExtensions=["mp3"];// add other extensions to try loading if the src file extension is not supported
116
117
createjs.Sound.addEventListener("fileload",playSound);// add an event listener for when load is completed
117
118
createjs.Sound.registerSound(src);// register sound, which preloads by default
0 commit comments