Navigation
Unreal Engine C++ API Reference > 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 |
uint64 AddOrTouchChunk
&40;
const FChunkKey & InKey,
const TSharedPtr< FSoundWaveData > & InSoundWavePtr,
TFunction< void(EAudioChunkLoadResult) > OnLoadCompleted,
ENamedThreads::Type CallbackThread,
bool bNeededForPlayback
&41;
Remarks
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.