FCachedAudioStreamingManager::RequestChunk

Manually prepare a chunk to start playing back.

Windows
MacOS
Linux

Override Hierarchy

IAudioStreamingManager::RequestChunk()

FCachedAudioStreamingManager::RequestChunk()

References

Module

Engine

Header

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

Include

#include "AudioStreamingCache.h"

Source

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

Syntax

virtual bool RequestChunk
(
    USoundWave * SoundWave,
    uint32 ChunkIndex,
    TFunction< void)> OnLoadCompleted,
    ENamedThreads::Type ThreadToCallOnLoadCompletedOn,
    bool bForImmediatePlayback
)

Remarks

Manually prepare a chunk to start playing back. This should only be used when the Load On Demand feature is enabled, and returns false on failure.

Parameters

Parameter

Description

SoundWave

SoundWave we would like to request a chunk of.

ChunkIndex

the index of that soundwave we'd like to request a chunk of.

OnLoadCompleted

optional callback when the load completes.

ThreadToCallOnLoadCompleteOn.

Optional specifier for which thread OnLoadCompleted should be called on.

bForImmediatePlaybac

if true, this will optionally reprioritize this chunk's load request.

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