I just updated the CocoonJSAudioPlugin.js to work with SoundJS 0.5.2 and CocoonJS 1.4.7
Download: CocoonJSAudioPlugin
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 |
createjs.Sound.registerPlugins([createjs.CocoonJSAudioPlugin]); |
Playing the same sound multiple times parallel/overlapping: You will have to set the maximum number of parallel sounds in the register-method:
1 2 |
//this will allow me to play 3 parallel instances of jump.ogg createjs.Sound.registerSound('jump.ogg','jump', 3); |
Pingback: CocoonJS AudioPlugin for SoundJS | indiegamr