Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAudioChunkCache
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h |
| Include | #include "AudioStreamingCache.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AudioStreamingCache.cpp |
TArrayView< uint8 > GetChunk
&40;
const FChunkKey & InKey,
const TSharedPtr< FSoundWaveData > & InSoundWavePtr,
bool bBlockForLoadCompletion,
bool bNeededForPlayback,
uint64 & InOutCacheLookupID
&41;
Remarks
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.