Navigation
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 Cook ( [FName](API\Runtime\Core\UObject\FName) Format, const [TArray](API\Runtime\Core\Containers\TArray)< uint8 > & SrcBuffer, [FSoundQualityInfo](API\Developer\TargetPlatform\Interfaces\FSoundQualityInfo) & QualityInfo, [TArray](API\Runtime\Core\Containers\TArray)< uint8 > & OutBuffer ) const
Remarks
Cooks the source data for the platform and stores the cooked data internally. true on success, false otherwise.
Parameters
Name | Description |
---|---|
Format | The desired format. |
SrcBuffer | The source buffer. Buffers are 16 bit PCM, either mono or stereo (check QualityInfo.NumChannels) |
QualityInfo | All the information the compressor needs to compress the audio. QualityInfo.Duration is unset. |
OutBuffer | Will hold the resulting compressed audio. |