Loads a bank synchronously (by ID).
| Note: Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. |
The bank ID is passed to the Stream Manager. Refer to General Information for a discussion on using strings and IDs. A bank load request will be posted, and consumed by the Bank Manager thread. The function returns when the request has been completely processed.
- Returns
AK_Success:
Load or unload successful.
AK_BankAlreadyLoaded:
This bank is already loaded, nothing done.
AK_InsufficientMemory:
Insufficient memory to store bank data.
AK_BankReadError:
I/O error. The bank is either shorter than expected or its data corrupted.
AK_WrongBankVersion:
Invalid bank version: make sure the version of Wwise that you used to generate the SoundBanks matches that of the SDK you are currently using.
AK_InvalidFile:
File specified could not be opened.
AK_NotInitialized
if the sound engine was not correctly initialized
AK_InvalidParameter
if some parameters are invalid, check the debug console or Wwise Profiler
AK_InvalidBankType
if the bank type parameter is out of range.
AK_FileNotFound
if the bank file was not found on disk.
AK_FilePermissionError
if the file permissions are wrong for the file
AK_Fail:
Load or unload failed for any other reason. , check the debug console or Wwise Profiler
- See also
-
- Parameters
-
in_bankID | Bank ID of the bank to load |
in_bankType | Type of the bank to load |