0
0

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.

  • You must to post comments
0
0

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

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

  • Chase Pettit

    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.

  • Richard Simms

    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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.