Storyboard - loading sounds in enterScene (c.f. createScene) still delays initial render of view????

I’ve noticed loading sounds is take a few seconds - I’ve tried to put them into “enterScene” as opposed to “createScene” however the view still does not appear (e.g. items loaded in createScene) until after the sounds are loaded in “enterScene”. Is this normal?

What’s the best way to load the sounds after startup of the scene, but in way that does not hamper the initial view of the scene to be shown to the user? Do I need to use “performWithDelay” perhaps???

[import]uid: 140210 topic_id: 29935 reply_id: 329935[/import]

I load all my sound in my main.lua file then just audio.play it in the scene I want. [import]uid: 75779 topic_id: 29935 reply_id: 120058[/import]

Yeah me too, that way it all loads in while the app splash screen is displayed. There’s enough delay loading display objects for each scene without adding sound into the mix as well. [import]uid: 93133 topic_id: 29935 reply_id: 120068[/import]

ok - but do I have this right here:

a) no matter how/where you load the sound (let’s say it takes 5 seconds) there is going to be a “freeze” of the application when this 5 seconds occurs right? Whether in main.lua, or somewhere in the first storyboard file. Also irrespective of whether you use performWithDelay or not? (as it seems Corona is really single threaded here - I’ve been testing this and I think I’ve proven this to myself now)

b) so the best you can do (assuming you want to preload audio) is having a loading/splash page that is “static” (e.g. no spinner images that rotate else they will appear frozen when audio loads)? (and Corona doesn’t seem to support animated gifs for the spinner/loading image)

Am I correct, or am I missing something here?
[import]uid: 140210 topic_id: 29935 reply_id: 120126[/import]

It doesn’t always take that long, mine loads up in under a second. How big is your file? If it is taking a few seconds you should definately make a flashy splashy screen. [import]uid: 75779 topic_id: 29935 reply_id: 120190[/import]

@rmckee282002 - I think it’s ok on a modern device, but on my 3GS it takes about 4-5 seconds (on our iPad it seems to take ~1sec) - but just trying to get the concept/approach right

are my summary points in a) and b) above correct? [import]uid: 140210 topic_id: 29935 reply_id: 120211[/import]

As to point A I cannot confirm that their is a ‘noticeable’ delay due to loading sound. I’ve never noticed it or read about any issues in the forums.

Point B I agree if you are facing a few seconds loading time a static splash screen is a very good answer as opposed to a black screen. [import]uid: 75779 topic_id: 29935 reply_id: 120224[/import]

ok - thanks rmckee [import]uid: 140210 topic_id: 29935 reply_id: 120227[/import]

I load all my sound in my main.lua file then just audio.play it in the scene I want. [import]uid: 75779 topic_id: 29935 reply_id: 120058[/import]

Yeah me too, that way it all loads in while the app splash screen is displayed. There’s enough delay loading display objects for each scene without adding sound into the mix as well. [import]uid: 93133 topic_id: 29935 reply_id: 120068[/import]

ok - but do I have this right here:

a) no matter how/where you load the sound (let’s say it takes 5 seconds) there is going to be a “freeze” of the application when this 5 seconds occurs right? Whether in main.lua, or somewhere in the first storyboard file. Also irrespective of whether you use performWithDelay or not? (as it seems Corona is really single threaded here - I’ve been testing this and I think I’ve proven this to myself now)

b) so the best you can do (assuming you want to preload audio) is having a loading/splash page that is “static” (e.g. no spinner images that rotate else they will appear frozen when audio loads)? (and Corona doesn’t seem to support animated gifs for the spinner/loading image)

Am I correct, or am I missing something here?
[import]uid: 140210 topic_id: 29935 reply_id: 120126[/import]

It doesn’t always take that long, mine loads up in under a second. How big is your file? If it is taking a few seconds you should definately make a flashy splashy screen. [import]uid: 75779 topic_id: 29935 reply_id: 120190[/import]

@rmckee282002 - I think it’s ok on a modern device, but on my 3GS it takes about 4-5 seconds (on our iPad it seems to take ~1sec) - but just trying to get the concept/approach right

are my summary points in a) and b) above correct? [import]uid: 140210 topic_id: 29935 reply_id: 120211[/import]

As to point A I cannot confirm that their is a ‘noticeable’ delay due to loading sound. I’ve never noticed it or read about any issues in the forums.

Point B I agree if you are facing a few seconds loading time a static splash screen is a very good answer as opposed to a black screen. [import]uid: 75779 topic_id: 29935 reply_id: 120224[/import]

ok - thanks rmckee [import]uid: 140210 topic_id: 29935 reply_id: 120227[/import]