Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAudioChunkCache
Description
Returns the chunk asked for, or an empty TArrayView if that chunk is not loaded. InOutCacheLookupID can optionally be set as a cache offset to use directly rather than searching the cache for a matching chunk. InOutCacheLookupID will be set to the offset the chunk is in the cache, which can be used for faster lookup in the future.
| Name | GetChunk |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h |
| Include Path | #include "AudioStreamingCache.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AudioStreamingCache.cpp |
TArrayView < uint8 > GetChunk
(
const FChunkKey & InKey,
const TSharedPtr < FSoundWaveData > & InSoundWavePtr,
bool bBlockForLoadCompletion,
bool bNeededForPlayback,
uint64 & InOutCacheLookupID
)