thinkpixellab / PxLoader

PxLoader is a simple JavasScript library for creating preloaders and resource downloaders for HTML5 apps.
http://thinkpixellab.com/pxloader
1.11k stars 173 forks source link

sound loading example #19

Open timohausmann opened 11 years ago

timohausmann commented 11 years ago

Hey there. First of all, awesome library, helps alot. Thought I let you know: I had an issue with your audio loading example on http://thinkpixellab.com/pxloader/.

It happened to me that addSound() occurs before the soundManager is ready for usage, resulting in an error.

I solved it by calling the loadSound()s and loader.start(); within the soundManager.onready-function. addImage() can be done before soundManagers' onready though.

JamesMcFall commented 10 years ago

Thanks for documenting this. I've had the same issue.

jamesxwang commented 5 years ago

Thanks, helped a lot! 👍