thinkpixellab / PxLoader

PxLoader is a simple JavasScript library for creating preloaders and resource downloaders for HTML5 apps.

Home Page:http://thinkpixellab.com/pxloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sound loading example

timohausmann opened this issue · comments

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.

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

Thanks, helped a lot! 👍