class

FVoiceAdpcmCodec

Module
VoiceChat
Header
#include "VoiceChat/FVoiceAdpcmCodec.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr uint32_tkSampleRateDefault 16000.
static constexpr uint32_tkFrameSamplesDefault 320.
static constexpr uint32_tkHeaderBytesDefault 3.

Constructors

SignatureNameDescription
FVoiceAdpcmCodec() = defaultFVoiceAdpcmCodec
~FVoiceAdpcmCodec() override = default~FVoiceAdpcmCodec

Public functions

ReturnsNameDescription
EVoiceCodecIdGetCodecId
const char*GetName
uint32_tGetSampleRate
uint32_tGetFrameSamples
uint32_tGetMaxEncodedBytes
std::unique_ptr<IVoiceDecoder>CreateDecoderADPCM is self-seeded per frame, so its decoder is stateless and only exists to satisfy the per-stream seam.
boolEncodeFrame
boolDecodeFrame
floatBlockRmsRoot-mean-square of a block, normalised to 0..1.

Function details

FVoiceAdpcmCodec

C++
FVoiceAdpcmCodec() = default

~FVoiceAdpcmCodec

C++
~FVoiceAdpcmCodec() override = default

GetCodecId

C++
EVoiceCodecId GetCodecId() const override

GetName

C++
const char* GetName() const override

GetSampleRate

C++
uint32_t GetSampleRate() const override

GetFrameSamples

C++
uint32_t GetFrameSamples() const override

GetMaxEncodedBytes

C++
uint32_t GetMaxEncodedBytes() const override

CreateDecoder

C++
std::unique_ptr<IVoiceDecoder> CreateDecoder() const override

ADPCM 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) override

DecodeFrame

C++
bool DecodeFrame(const uint8_t* data, size_t len, std::vector<int16_t>& out) override

BlockRms

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