Navigation
API > API/Runtime > API/Runtime/Voice > API/Runtime/Voice/Interfaces
Inheritance Hierarchy
- TSharedFromThis
- IVoiceEncoder
References
| Module | Voice |
| Header | /Engine/Source/Runtime/Online/Voice/Public/Interfaces/VoiceCodec.h |
| Include | #include "Interfaces/VoiceCodec.h" |
Syntax
class IVoiceEncoder : public TSharedFromThis< IVoiceEncoder >
Remarks
Interface for encoding raw voice for transmission over the wire
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Destroy () |
Cleanup the encoder | |
| void | DumpState () |
Output the state of the encoder | |
| int32 | Encode
(
const uint8* RawPCMData, |
Encode a raw audio stream (expects 16bit PCM audio) | |
| bool | Init
(
int32 SampleRate, |
Initialize the encoder | |
| void | Reset () |
Reset the encoder back to its initial state | |
| bool | SetBitrate
(
int32 InBitRate |
Adjust the encoding bitrate | |
| bool | SetComplexity
(
int32 InComplexity |
Adjust the encoding complexity (platform specific) | |
| bool | SetVBR
(
bool bEnableVBR |
Set the encoding to variable bitrate |