IAudioFormat::CookSurround

Cooks up to 8 mono files into a multi-stream file (e.g. 5.1).

Unreal Engine C++ API Reference > Developer > TargetPlatform > Interfaces > IAudioFormat

References

   
Module TargetPlatform
Header /Engine/Source/Developer/TargetPlatform/Public/Interfaces/IAudioFormat.h
Include #include "Interfaces/IAudioFormat.h"
bool CookSurround
(
    [FName](API\Runtime\Core\UObject\FName) Format,
    const [TArray](API\Runtime\Core\Containers\TArray)< [TArray](API\Runtime\Core\Containers\TArray)< uint8 > > & SrcBuffers,
    [FSoundQualityInfo](API\Developer\TargetPlatform\Interfaces\FSoundQualityInfo) & QualityInfo,
    [TArray](API\Runtime\Core\Containers\TArray)< uint8 > & OutBuffer
) const

Remarks

Cooks up to 8 mono files into a multi-stream file (e.g. 5.1). The front left channel is required, the rest are optional. true if succeeded, false otherwise

Parameters

Name Description
Format The desired format.
SrcBuffers The source buffers. Buffers are mono 16 bit PCM.
QualityInfo All the information the compressor needs to compress the audio. QualityInfo.Duration is unset.
OutBuffer Will contain the resulting compressed audio.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library