IVoiceEncoder::Encode

Encode a raw audio stream (expects 16bit PCM audio)

Windows
MacOS
Linux

References

Module

Voice

Header

/Engine/Source/Runtime/Online/Voice/Public/Interfaces/VoiceCodec.h

Include

#include "Interfaces/VoiceCodec.h"

Syntax

int32 Encode
(
    const uint8 * RawPCMData,
    uint32 RawDataSize,
    uint8 * OutCompressedData,
    uint32 & OutCompressedDataSize
)

Remarks

Encode a raw audio stream (expects 16bit PCM audio)

Returns

number of bytes at the end of the stream that wasn't encoded (some interfaces can only encode at a certain frame slice)

Parameters

Parameter

Description

RawPCMData

array of raw PCM data to encode

RawDataSize

amount of raw PCM data in the buffer

OutCompressedData

buffer to contain encoded/compressed audio stream

OutCompressedDataSize

[in/out] amount of buffer used to encode the audio stream

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