FAudioChunkCache::AddOrTouchChunk

Places chunk in cache, or puts this chunk back at the top of the cache if it's already loaded.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h

Include

#include "AudioStreamingCache.h"

Source

/Engine/Source/Runtime/Engine/Private/AudioStreamingCache.cpp

Syntax

uint64 AddOrTouchChunk
(
    const FChunkKey & InKey,
    TFunction< void) > OnLoadCompleted,
    ENamedThreads::Type CallbackThread,
    bool bNeededForPlayback
)

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss