In the browser:
I was wondering if there is a way to load/unload a bank during runtime, via a buttonclick, and then trigger sound inside the bank and unload it later. Am I completely on the wrong track here? I can’t find an example. It seems they all load the banks in prerun.
Yes, it’s entirely possible to do that. You can use the Studio::System
bank load functions such as Studio::System::loadBankFile
to load a given bank, and then unload it with Studio::Bank::unload
. For an example of how to do this, I would recommend taking a look at the load_banks
example included with our HTML5 Engine installer.