So, I just finished getting all Audio in my game with Fmod, and now after making a build, the first time it loads, it takes 2 minutes to load the first level, while with Unity Audio it was taking 20 seconds.
So, trying to understand what´s wrong here ?
All my audio is split in Banks, each Level has a StudioBankLoader that loads the banks assigned to this level.
All the longer audio files (over 8 seconds) are with Streaming option.
No Preload Sample Data is enable on the StudioBankLoader script.
On Fmod Settings, Import Type is “Streaming Assets”, and I have to have “Load All Event Data at Initialization” or else I will have million of errors in the console (and audios not playing), but “Load All Sample Data at Initialization” is off.
So, what can I do to speed up this loading time ?
2 minutes is just absurd, I have the feeling Fmod is loading the entire audio of the game.
Hi, do you have the audioclip set to preload in the audioclip import settings?
you can also set clips to
Load In Background
That would work if I was using Unity Audio, but I´m with Fmod.
“Load All Event Data at Initialization” causes every event in every bank in your project to be loaded at startup. (This also makes the StudioBankLoader that loads the banks assigned to each level redundant, as those banks are already loaded at startup.)
If you want to avoid doing loading all the banks at startup, you should stop using Load All Event Data at Initialization. Use the Bank Load Component instead; it allows you to load the master bank at startup, and other banks subsequently only as required.
For more information on this topic, see https://www.fmod.com/resources/documentation-api?page=content/generated/engine_new_unity/settings.html#/ and https://www.fmod.com/resources/documentation-api?page=content/generated/engine_new_unity/loader.html#/