What's the best way to load banks?

We’ve encountered a fun little issue that I am unclear on.

So when building a game in Unreal, the immediate first level that gets loaded needs a different bank than the Master bank, so I load it like so…

loading banks

However, this seems to cause issues where the bank might have not loaded fast(?) enough, resulting in FMOD events not triggering at all.

So, that makes me wonder, what’s the best way to load banks so issues like that don’t happen?

Am I perhaps running into an issue here where the very first loaded map in unreal HAS to be a master bank?

If your bank has to be loaded at the beginning of the game, why don’t you load it at the same time as the master bank?
Here is a great answer on managing banks, that maybe don’t respond exactly to your case but could interest you: Bank management: best practices? - #5 by richard_simms

Hey thanks, this is actually helpful information! Simply put, this is my first time using FMOD, so I just didn’t know the best practices!

Alcibiade’s answer is correct: If you need a bank’s content at the start of the game, you should load that bank at the start of the game.

The master bank includes all the things that aren’t specific to any one event, but that every event needs to function. For example, it includes the project mixer, without which none of your events can be correctly routed or mixed. You should therefore load the master bank when your game first starts, and keep it loaded until your game is exited. Other banks can be loaded and unloaded as the need arises, but the master bank always needs to be there in the background.

Many FMOD Studio users deliberately don’t assign any events to the master bank, unless they’re confident those events might need to be played at almost any time in their games.

I would tend to do the opposite: everything in the master bank, until it appears there’s a good reason to split banks. :slight_smile: (hence the post I quoted before)

1 Like