android - Loading Sounds for SoundPool effectively (Global SoundPool?) -


i'm creating game has series of sounds played on different activities.

loading sounds in oncreate hampers fps dramatically, i'm wondering there more efficient way load sounds, or way create global soundpool can called activities.

if create public soundpool in main menu activity, can played in future activities?

thanks andy

i create separate sound class (sort of utils), has play, load, unload etc methods. access these of activities in static fashion. make sure use application context load sounds lest end leaking memory (if use activity context)


Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

ios - How to Rectify the Relationship Fault in CoreData While parsing RESTKIT? -