IAudioFormat::GetMinimumSizeForInitialChunk

Given the encoded buffer, returns the minimum number of bytes required to perform [ICompressedAudioInfo::ReadCompressedInfo()](API\Runtime\Engine\ICompressedAudioInfo\ReadCompressedInfo) or [IStreamedCompressedInfo::ParseHeader()](API\Runtime\Engine\IStreamedCompressedInfo\ParseHeader) for this file.

Windows
MacOS
Linux

References

Module

TargetPlatform

Header

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

Include

#include "Interfaces/IAudioFormat.h"

Syntax

virtual int32 GetMinimumSizeForInitialChunk
(
    FName Format,
    const TArray< uint8 > & SrcBuffer
) const

Remarks

Given the encoded buffer, returns the minimum number of bytes required to perform ICompressedAudioInfo::ReadCompressedInfo() or IStreamedCompressedInfo::ParseHeader() for this file.

Parameters

Parameter

Description

Format

the codec that SrcBuffer was compressed as.

SrcBuffer

the compressed data that will later be split into individual chunks.

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