IAudioFormat::Recompress

Re-compresses raw PCM to the the platform dependent format, and then back to PCM.

Windows
MacOS
Linux

References

Module

TargetPlatform

Header

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

Include

#include "Interfaces/IAudioFormat.h"

Syntax

int32 Recompress
(
    FName Format,
    const TArray< uint8 > & SrcBuffer,
    FSoundQualityInfo & QualityInfo,
    TArray< uint8 > & OutBuffer
) const

Remarks

Re-compresses raw PCM to the the platform dependent format, and then back to PCM. Used for quality previewing.

Returns

The size of the compressed audio, or 0 on failure.

Parameters

Parameter

Description

Format

The desired format.

SrcBuffer

Uncompressed PCM data.

QualityInfo

All the information the compressor needs to compress the audio.

OutBuffer

Uncompressed PCM data after being compressed.

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