Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAudioChunkCache
Description
Places chunk in cache, or puts this chunk back at the top of the cache if it's already loaded. Returns the static lookup ID of the chunk in the cache on success, or InvalidAudioStreamCacheLookupID on failiure.
| Name | AddOrTouchChunk |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h |
| Include Path | #include "AudioStreamingCache.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AudioStreamingCache.cpp |
uint64 AddOrTouchChunk
(
const FChunkKey & InKey,
const TSharedPtr < FSoundWaveData > & InSoundWavePtr,
TFunction < void) > OnLoadCompleted,
ENamedThreads::Type CallbackThread,
bool bNeededForPlayback
)