IAudioFormat::SplitDataForStreaming

Splits compressed data into chunks suitable for streaming audio.

Windows
MacOS
Linux

References

Module

TargetPlatform

Header

/Engine/Source/Developer/TargetPlatform/Public/Interfaces/IAudioFormat.h

Include

#include "Interfaces/IAudioFormat.h"

Syntax

virtual bool SplitDataForStreaming
(
    const TArray< uint8 > & SrcBuffer,
    TArray< TArray< uint8 >> & OutBuffers,
    const int32 FirstChunkMaxSize,
    const int32 MaxChunkSize
) const

Remarks

Splits compressed data into chunks suitable for streaming audio.

Returns

Whether bulk data could be split for streaming.

Parameters

Parameter

Description

SrcBuffer

Pre-compressed data as an array of bytes.

OutBuffers

Array of buffers that contain the chunks the original data was split into.

FirstChunkMaxSize

The maximum size for the chunk that will be loaded inline with it's owning USoundWave asset.

MaxChunkSize

The maximum chunk size for each chunk. The chunks will be zero-padded to match this chunk size in the bulk data serialization.

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