Navigation
API > API/Runtime > API/Runtime/Voice > API/Runtime/Voice/Interfaces > API/Runtime/Voice/Interfaces/IVoiceEncoder
References
Module | Voice |
Header | /Engine/Source/Runtime/Online/Voice/Public/Interfaces/VoiceCodec.h |
Include | #include "Interfaces/VoiceCodec.h" |
int32 Encode
&40;
const uint8 &42; RawPCMData,
uint32 RawDataSize,
uint8 &42; OutCompressedData,
uint32 & OutCompressedDataSize
&41;
Remarks
Encode a raw audio stream (expects 16bit PCM audio) number of bytes at the end of the stream that wasn't encoded (some interfaces can only encode at a certain frame slice)
Parameters
Name | 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 |