IVoiceEncoder::Init

Initialize the encoder

Windows
MacOS
Linux

References

Module

Voice

Header

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

Include

#include "Interfaces/VoiceCodec.h"

Syntax

bool Init
(
    int32 SampleRate,
    int32 NumChannels,
    EAudioEncodeHint EncodeHint
)

Remarks

Initialize the encoder

Returns

true if initialization was successful, false otherwise

Parameters

Parameter

Description

SampleRate

requested sample rate of the encoding

NumChannel

number of channels in the raw audio stream

EncodeHint

type of audio that will be encoded

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