pre-loading images and pre-loading sounds

I was just looking at the Apis regarding preloading of sound and images.
I was wondering the best way to pre load images and sound.

I am a little unsure which images to pre-load.I have several sprite sheets and multiple single images.
I will have a background track and 4 separate sound effects.

Should I just pre load the sprite sheets and sounds and leave the single images?
What format should the sound files be? would mp3 be ok in android?

Any help would be cool. [import]uid: 127675 topic_id: 31369 reply_id: 331369[/import]

Mp3s work fine.

As far as preloading images/sounds go it has a lot to do with your game. For images I only need to load once, such as at the start of a level, i wouldn’t worry so much about preloading/caching. The small amount of time added to the level load process isn’t a big deal.

For any objects that would be spawned/despawned throughout the game I would preload images as you could end up with slight stutter during game play anytime an object is spawned and the image is not currently cached in memory. [import]uid: 147305 topic_id: 31369 reply_id: 125416[/import]

thanks Budershank,

I was initially worried about the time etc so thanks for clearing that up.
Regarding the Mp3, I managed to find the information in one of the Apis; I had to re-encode the Mp3s in order to stop errors kicking up in the terminal.
Rock on ! [import]uid: 127675 topic_id: 31369 reply_id: 125427[/import]

Mp3s work fine.

As far as preloading images/sounds go it has a lot to do with your game. For images I only need to load once, such as at the start of a level, i wouldn’t worry so much about preloading/caching. The small amount of time added to the level load process isn’t a big deal.

For any objects that would be spawned/despawned throughout the game I would preload images as you could end up with slight stutter during game play anytime an object is spawned and the image is not currently cached in memory. [import]uid: 147305 topic_id: 31369 reply_id: 125416[/import]

thanks Budershank,

I was initially worried about the time etc so thanks for clearing that up.
Regarding the Mp3, I managed to find the information in one of the Apis; I had to re-encode the Mp3s in order to stop errors kicking up in the terminal.
Rock on ! [import]uid: 127675 topic_id: 31369 reply_id: 125427[/import]