loov / jsfx

Javascript Sound Effect Generator
MIT License
576 stars 49 forks source link

Callbacks / Custom events on audio ready? #3

Closed hay closed 9 years ago

hay commented 13 years ago

I'm wondering, when generating a lot of sounds (25 or so) it can take up a few seconds before everything is loaded. Not quite sure why. However, would it be possible somehow to get pass a callback parameter on creation that is called when the sound is ready so you can display a loading animation? I've looked in the source code but can't quite figure out how to do that...

egonelbre commented 13 years ago

I'm not quite sure what part is slow... but currently it's not async so it should be ready after the generation function call.

Maybe you can do a simple example to show the problem.

egonelbre commented 9 years ago

Closing due to no response.