- Home /
Webplayer Dynamic Audio Loading
Hey guys!
I am currently working on a game and we have started to design an Audio Manager to deal with the sounds in our game.
We are using bundles that load from a server between scenes.
What is the best practice for WebPlayer?
Analyse what sound files will be needed in the loading scene, download the required bundles(Which get stored in cache), store all bundles in memory. Remove from memory at next level transition.
Analyse what sound files will be needed in the loading scene, download the required bundles(Which get stored in cache), do NOT load into memory. When sound is first used, load from cache if able, else download from server and re-add to cache. Once used, remove from memory or keep?.
Do NOT analyse, only download required sound files when needed if it doesn't exist in cache already, then add to cache. May cause delayed sound effects.
Other solution
I'm not sure what the general practice is, but from what I gather storing in memory shouldn't be too bad for WebPlayer?
Would appreciate any recommendations, advice, tips or links to anything relevant! Thanks :)