Then, I’m saving the newly downloaded Audio Clip to Application.persistentDataPath (I won’t copy the code unless needed as to not bulk up my post)
And it works. And whenever I launch the application again, I don’t have to download the Audio Clip because it’s already stored in memory. So I can just load it from memory and play it.
I need to do this for potentially thousands of Audio Files from the web, and it works just fine except for one small issue.
For some reason, an Audio Clip that when downloaded normally has a 27 megabyte size, turns into a 151 megabyte monster when I use the above procedure.
That big file size is not good, not only because it increases the size of the App, but because mobile devices have trouble loading them from memory.
I don’t know why this happens, because the devices can download it no problem, it’s the loading from memory that’s crashing them due to lack of memory.
Gives me an error that doesn’t show anything on the console. I know the www clip was loaded because it carries info, but for some reason I can’t get it out to an Audio Clip.