FWavEncoder

Windows
MacOS
Linux

Inheritance Hierarchy

IAudioEncoder

FWavEncoder

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/Encoders/WavEncoder.h

Include

#include "DSP/Encoders/WavEncoder.h"

Syntax

class FWavEncoder : public Audio::IAudioEncoder

Constructors

Name Description

Public function

FWavEncoder

(
    const FSoundQualityInfo& InInfo,
    int32 AudioCallbackSize
)

Overridden from IAudioEncoder

Name Description

Protected function Virtual

bool

 

EncodeChunk

(
    const TArray< float >& InAudio,
    TArray< uint8 >& OutBytes
)

Override this to compress InAudio to OutBytes. Returns true on success, false on failure.

Protected function Virtual

bool

 

EndFile

(
    TArray< uint8 >& OutBytes
)

Override this to compress InAudio to OutBytes. Returns true on success, false on failure.

Public function Virtual Const

int32

 

GetCompressedPacketSize()

Used for internet streaming.

Protected function Virtual Const

int64

 

SamplesRequiredPerEncode()

How many samples of decoded audio that are required for a single compression operation.

Protected function Virtual

bool

 

StartFile

(
    const FSoundQualityInfo& InQuality...,
    TArray< uint8 >& OutFileStart
)

This should be overridden to, give the properties in InQualityInfo, write a header into OutFileStart.

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