Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h |
Include |
#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
)
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.