Hi,
I am developing the application that can playback different audio files.
Since Chrome disabled Web Player by default I am relying on WebGL.
In my little demo I added 10 AudioClips in editor to my Custom Component and on Space press I playback them (25 MB each).
GetComponent<AudioSource>().clip = audios[j];
j++;
My files are 4 minutes long mp3 (also tried ogg) songs and after I reach 6-8 Web player crashes.
I use stripping level: Strip Assemblies, Explicitly thrown exceptions and non-development Fastest(very slow builds) settings.
I am not using high end gaming hardware, but my desktop is relatively new and Unity runs without any lags (average pc of my target audience).
I tested with following memory settings: 256, 512, 1024.
I actually don’t see any difference between 256 and 512, but 1024 is the worst – everything crashes after 2-3 audio.
Is there any way to achieve my goal?