Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h |
Include |
#include "AudioStreamingCache.h" |
Source |
/Engine/Source/Runtime/Engine/Private/AudioStreamingCache.cpp |
uint64 AddOrTouchChunk
(
const FChunkKey & InKey,
const TSharedPtr< FSoundWaveData > & InSoundWavePtr,
TFunction< void(EAudioChunkLoadResult) > OnLoadCompleted,
ENamedThreads::Type CallbackThread,
bool bNeededForPlayback
)
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.