android - Application load time is so slow when using many sounds in Soundpool... any substitutions? -


long story short, making soundboard. short clips, researching, soundpool seemed best option. has worked out phenomenally me, except overall load time getting longer , longer. have many sound clips in there, , have them load in oncreate() in main activity, in order remove further loading time between other activities. said, load time long, , plan on having many more sound clips added in. there sort of substitution load faster? have seen soundboard loads larger amount of sound clips, , application loaded, , sounds ready play when buttons clicked. if has suggestions, appreciate it!!

this app talking about, if see in action: https://play.google.com/store/apps/details?id=com.cr5315.grump&feature=search_result#?t=w251bgwsmswxldesimnvbs5jcjuzmtuuz3j1bxaixq..

don't load them in oncreate- load them in asynctask gets launched in oncreate. way load in background app running. you'll have add null checks each sound, or not play sounds until entire set of sounds downloaded (use flag set in end of task check this).


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -