# Request: Add LOAD\_BANK\_FLAGS parameter to RuntimeManager.LoadBank.

**URL:** <https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183>\
**Category:** Unity\
**Created:** [May 16, 2017, 5:18pm UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183 "2017-05-16T17:18:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chasepettit](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chasepettit](https://qa.fmod.com/u/chasepettit)\
**Post date:** [May 16, 2017, 5:18pm UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183/1 "2017-05-16T17:18:50Z")

</div>

It’s really mostly on me, but for whatever reason I initially assumed that LoadBank would be asynchronous since there is an AnyBankLoading method - the name is a bit misleading since it seems to actually check if sample data is loading.

An optional flag parameter for LoadBank would be nice so that there would be option to asynchronously load a bank. The AnyBankLoading method might also need to be modified to account for this possibility.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [May 17, 2017, 3:46am UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183/2 "2017-05-17T03:46:46Z")

</div>

Hi Chase,

Loading banks is already asynchronous and doesn’t require any additional flags.

[https://www.fmod.org/docs/content/generated/example\_studio/load\_banks.html](https://www.fmod.org/docs/content/generated/example_studio/load_banks.html)

However it seems you are correct - `AnyBankLoading()` is checking for if sample data is being loaded, not banks. This is not the expected behaviour and has been raised with the development team. Thank you for bringing this to our attention.

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![chasepettit](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chasepettit](https://qa.fmod.com/u/chasepettit)\
**Post date:** [May 17, 2017, 4:02am UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183/3 "2017-05-17T04:02:22Z")

</div>

> [@](#):
>
> Hi Chase,
> 
> Loading banks is already asynchronous and doesn’t require any additional flags.
> 
> [https://www.fmod.org/docs/content/generated/example\_studio/load\_banks.html](https://www.fmod.org/docs/content/generated/example_studio/load_banks.html)
> 
> However it seems you are correct - `AnyBankLoading()` is checking for if sample data is being loaded, not banks. This is not the expected behaviour and has been raised with the development team. Thank you for bringing this to our attention.
> 
> Thanks,  
> Richard

Really? I’ll check again, but it seemed like the call was blocking by default and was only nonblocking when I explicitly passed the nonblocking flag. That’s also consistent with the documentation for loadBankFile that you linked.

For the record, this is with the 1.08.08 version of FMOD Studio and the Unity integration, so I guess it’s possible this behavior has changed.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [May 18, 2017, 4:29am UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183/4 "2017-05-18T04:29:20Z")

</div>

Hi Chase,

My apologies, you’re right. Loading banks is blocking by default unless the FMOD\_STUDIO\_LOAD\_BANK\_NONBLOCKING flag is passed into it. If you pass this flag in you can load banks asynchronously.

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![GiacomoF](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@GiacomoF](https://qa.fmod.com/u/GiacomoF)\
**Post date:** [October 18, 2019, 6:57pm UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183/5 "2019-10-18T18:57:28Z")

</div>

I have a follow up question/remark to this topic. Please correct me if I am wrong.

The LOAD\_BANK flag seems to only work if the loadSamples bool is true in the LoadBank function(?)  
So say that in my FMODUnity Settings I have “Load All Sample Data At Initialization” un-ticked (false). In this scenario sample data will be loaded on demand whenever an event is called, rather than being pre-loaded either NORMALLY or ASYNCHRONOUSLY.

This makes me deduce that Asynchronous loading is different from the default On-Demand loading.  
Async loading will load all its sample data while not blocking the thread, on-demand loading only the samples of which ever event has been called and played.

Is my understanding correct?

---

<div class="post-metadata">

**Author:** ![GiacomoF](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@GiacomoF](https://qa.fmod.com/u/GiacomoF)\
**Post date:** [October 19, 2019, 12:44am UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183/6 "2019-10-19T00:44:28Z")

</div>

After some more testing I have come to understand that NON\_BLOCKING load and disabling loadSamples altogether from the LoadBank method achieve the same results.

Which to me sounds rather confusing at this point cause I thought NORMAL was the default loading flag.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 13, 2019, 4:37am UTC](https://qa.fmod.com/t/request-add-load-bank-flags-parameter-to-runtimemanager-loadbank/13183/7 "2019-11-13T04:37:39Z")

</div>


