Closed ghost closed 10 years ago
I know a library with lots of functionality suitable for html5 games. (Sprite, fadeIn, fadeOut ...) I think it would be great to implement it in the engine as core module or plugin.
http://goldfirestudios.com/blog/104/howler.js-Modern-Web-Audio-Javascript-Library
Have you tested howler.js with CocoonJS?
No but I don't see why it would not work. ;-)
Indeed, I have failed, so I created an issue for the experts. https://github.com/goldfire/howler.js/issues/132
:+1:
I make a PR. https://github.com/ekelokorpi/panda.js/pull/51 I bet Ludei add Web Audio soon...
I can't pause and resume the sounds from cocoonJS, furthermore, the sound appears jerky.
It should be possible according to the example provided by Ludei, Multichannel Sound.
https://cocoonjsservice.ludei.com/cocoonjslaunchersvr/demo-list/
Am I the only one ?
The test code below works correctly in Chrome and Firefox.
src/game/main.js