![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <VoiceCodec.h>
Inheritance diagram for IVoiceEncoder:Protected Member Functions | |
| IVoiceEncoder () | |
Protected Member Functions inherited from TSharedFromThis< IVoiceEncoder > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Additional Inherited Members | |
Static Protected Member Functions inherited from TSharedFromThis< IVoiceEncoder > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
Interface for encoding raw voice for transmission over the wire
|
inlineprotected |
|
inlinevirtual |
|
pure virtual |
Encode a raw audio stream (expects 16bit PCM audio)
| 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 |
|
pure virtual |
Initialize the encoder
| SampleRate | requested sample rate of the encoding |
| NumChannel | number of channels in the raw audio stream |
| EncodeHint | type of audio that will be encoded |
Adjust the encoding bitrate
| InBitRate | new bitrate value (bits/sec) |
Adjust the encoding complexity (platform specific)
| InComplexity | new complexity |
Set the encoding to variable bitrate
| bEnableVBR | true to use variable bit rate, false to turn it off |