FAudioChunkCache::GetChunk

Returns the chunk asked for, or an empty [TArrayView](API\Runtime\Core\Containers\TArrayView) if that chunk is not loaded.

References

Module

Engine

Header

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

Include

#include "AudioStreamingCache.h"

Source

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

Syntax

TArrayView< uint8 > GetChunk
(
    const FChunkKey & InKey,
    const TSharedPtr< FSoundWaveData > & InSoundWavePtr,
    bool bBlockForLoadCompletion,
    bool bNeededForPlayback,
    uint64 & InOutCacheLookupID
)

Remarks

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.

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