class
FVoiceAdpcmCodec
- Module
- VoiceChat
- Header
#include "VoiceChat/FVoiceAdpcmCodec.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint32_t | kSampleRate | Default 16000. |
static constexpr uint32_t | kFrameSamples | Default 320. |
static constexpr uint32_t | kHeaderBytes | Default 3. |
Constructors
| Signature | Name | Description |
|---|---|---|
FVoiceAdpcmCodec() = default | FVoiceAdpcmCodec | |
~FVoiceAdpcmCodec() override = default | ~FVoiceAdpcmCodec |
Public functions
| Returns | Name | Description |
|---|---|---|
EVoiceCodecId | GetCodecId | |
const char* | GetName | |
uint32_t | GetSampleRate | |
uint32_t | GetFrameSamples | |
uint32_t | GetMaxEncodedBytes | |
std::unique_ptr<IVoiceDecoder> | CreateDecoder | ADPCM is self-seeded per frame, so its decoder is stateless and only exists to satisfy the per-stream seam. |
bool | EncodeFrame | |
bool | DecodeFrame | |
float | BlockRms | Root-mean-square of a block, normalised to 0..1. |
Function details
FVoiceAdpcmCodec
C++
FVoiceAdpcmCodec() = default~FVoiceAdpcmCodec
C++
~FVoiceAdpcmCodec() override = defaultGetCodecId
C++
EVoiceCodecId GetCodecId() const overrideGetName
C++
const char* GetName() const overrideGetSampleRate
C++
uint32_t GetSampleRate() const overrideGetFrameSamples
C++
uint32_t GetFrameSamples() const overrideGetMaxEncodedBytes
C++
uint32_t GetMaxEncodedBytes() const overrideCreateDecoder
C++
std::unique_ptr<IVoiceDecoder> CreateDecoder() const overrideADPCM is self-seeded per frame, so its decoder is stateless and only exists to satisfy the per-stream seam.
EncodeFrame
C++
bool EncodeFrame(const int16_t* samples, uint32_t sampleCount, std::vector<uint8_t>& out) overrideDecodeFrame
C++
bool DecodeFrame(const uint8_t* data, size_t len, std::vector<int16_t>& out) overrideBlockRms
C++
static float BlockRms(const int16_t* samples, uint32_t sampleCount)Root-mean-square of a block, normalised to 0..1. The open-mic gate and the speaking indicator both key off it.
Generated from VoiceChat/FVoiceAdpcmCodec.h via voicechat.json · Oct 26, 2026Version 1.0.0