PLEASE USE THE UPDATED VERSION OF THIS PLUGIN IF YOU ARE WOKING WITH SoundJS 0.5.2 // CocoonJS 1.4.7 at http://indiegamr.com/soundjs-0-5-2-audio-plugin-for-cocoonjs-1-4-7/
Again a small, but hopefully helpful file: CocoonJSAudioPlugin.js
As the native SoundJS-Plugins: WebAudioPlugin.js and HTMLAudioPlugin, don’t seem to go hand in hand with CocoonJS (yet?) I took the time and wrote a CocoonJSAudio-Plugin based on the HTMLAudioPlugin, may this be of help to someone.
Download: CocoonJSAudioPlugin.js
How to use: Just put the CocoonPlugin as the first entry to register and you can use everything else of the SoundJS-library just as is in CocoonJS now.
1 2 3 4 5 6 |
createjs.Sound.registerPlugins([ createjs.CocoonJSAudioPlugin, createjs.WebAudioPlugin, createjs.HTMLAudioPlugin ] ); |