Sound loading times

Got some problems with my finished app. I load 9 sounds in my levelfile when i change the scene to the level. But on the device it takes like 25 seconds to load then the level.

Hopefully somebody can help.

Cheers,
Martin [import]uid: 86417 topic_id: 25493 reply_id: 325493[/import]

How large are the sounds and what device are you using? [import]uid: 52491 topic_id: 25493 reply_id: 103026[/import]

@peach
mp3 files one file is around 50-100 kB.
HTC Sensation

thx for helping [import]uid: 86417 topic_id: 25493 reply_id: 103041[/import]

As this is on Android it is likely related to the fact Android audio does have some issues. (This isn’t exclusive to Corona, it’s a widespread Android problem.)

I notice you’ve got a Pro sub, does that mean you have access to an iOS device to test this on as well? If so, how does performance compare?

You mention loading 9 sounds in “levelfile” when you change scenes to a level - would it be possible to load any at a different time or are they all needed immediately within the scene that loads them? [import]uid: 52491 topic_id: 25493 reply_id: 103234[/import]

Thinking loud:

Wouldnt work load the sound files into the main.lua file at the apps starts momment and just play it/them when necessary instead load them into the same scene that you wanna them to play?

Excuse me if I did not get your question so well.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 25493 reply_id: 103237[/import]

@peach

I know peach i fix it. I cut the lenght of the soundfiles and change the quality. Now i have around 5 secounds.

I load also a background sound in the main file. There i have a small loading time too.

I have too a iOS acess to the performance of loading was a bit better. (Ipad2)

I think the issue is that you need to load every soundfile and decode it. Maybe a solution would be to load 2 files with different threads. Multithreading would be a solution.

@RSCdev

i just load in them in the level scene. And play every soundeffect when i need it.
[import]uid: 86417 topic_id: 25493 reply_id: 103249[/import]