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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -