nw::snd::SoundDataManager::LoadData Member Function
bool LoadData(
SoundArchive::ItemId id,
SoundMemoryAllocatable * pAllocator,
u32 loadFlag = LOAD_ALL,
size_t loadBlockSize = 0
);
| Name | Description | |
|---|---|---|
| in | id | Item ID of the data to load. |
| in | pAllocator | Allocator that allocates memory for loading data. |
| in | loadFlag | Flag used to load related data. |
| in | loadBlockSize | Block size (in bytes) when data is loaded in blocks. |
Loads the data in a sound archive.
The memory required to load data is allocated by pAllocater. Returns FALSE if sufficient memory cannot be allocated.
This function synchronously loads sound data. When loading sound data asynchronously, call this function from a thread used for loading. This function is thread-safe as long as no operations are performed while loading on the associated sound archive or on the sound heap passed as an argument.
Initialize and IsAvailable from See Also, and added IsDataLoaded.IsDataLoaded to See Also.CONFIDENTIAL