Issue loading encrypted banks from memory

Hi,

We recently decided to use bank encryption in our project but are having issues with encrypted banks loaded from memory.

We are using Studio::System::loadBankMemory(), specifying FMOD_STUDIO_LOAD_BANK_NORMAL as the load bank flags. The result comes back as FMOD_OK but the audio doesn’t work. It appears to behave as though we haven’t set an encryption key.

The same encrypted banks work fine when loaded from file using Studio::System::loadBankFile() with the same load bank flags, and unencrypted banks work fine from both file and memory with the unencrypted flag. The issue seems to be isolated to loading encrypted banks from memory.

We discovered this issue in FMOD studio 2.00.07, but the issue still occurs after upgrading to version 2.01.00.

Any help on this matter would be appreciated.

Thanks for reporting this. After some investigation it looks like loadBankMemory does not work with encryption, and this is something that should be mentioned in the docs.

Thanks for the reply,

Will loading encrypted banks from memory be fixed in an upcoming release?

We load banks from both file and memory and would like to enable encryption for both. Without the ability to load the encrypted banks from memory, it will make the encryption feature more difficult to use for our project.

We have added a task to support this in a future release, although we currently do not have an ETA for it.