Loads a bank asynchronously (from in-memory data, in-place, user bank only).
IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
Use LoadBankMemoryView when you want to manage I/O on your side. Load the bank file in a buffer and pass its address to the sound engine. In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. *** A bank load request will be posted to the Bank Manager consumer thread. The function returns immediately.
- 반환값
AK_Success
if the scheduling was successful,
AK_InvalidBankType
if the bank is not a user-defined bank.
AK_DataAlignmentError
if the data pointer is not aligned properly Use a callback to be notified when completed, and get the status of the request. The bank ID, which is obtained by hashing the bank name (see GetIDFromString()). You may use this ID with UnloadBank().
- 참고
-
- 매개변수
-
in_pInMemoryBankPtr | Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid) |
in_uInMemoryBankSize | Size of the in-memory bank to load |
in_pfnBankCallback | Callback function |
in_pCookie | Callback cookie |
out_bankID | Returned bank ID |