IAudioFormat::Cook

Cooks the source data for the platform and stores the cooked data internally.

Windows
MacOS
Linux

References

Module

TargetPlatform

Header

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

Include

#include "Interfaces/IAudioFormat.h"

Syntax

bool Cook
(
    FName Format,
    const TArray< uint8 > & SrcBuffer,
    FSoundQualityInfo & QualityInfo,
    TArray< uint8 > & OutBuffer
) const

Remarks

Cooks the source data for the platform and stores the cooked data internally.

Returns

true on success, false otherwise.

Parameters

Parameter

Description

Format

The desired format.

SrcBuffer

The source buffer.

QualityInfo

All the information the compressor needs to compress the audio.

OutBuffer

Will hold the resulting compressed audio.

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