class

FVoiceJitterBuffer

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

Constructors

SignatureNameDescription
FVoiceJitterBuffer() = defaultFVoiceJitterBuffer

Public functions

ReturnsNameDescription
voidConfigure
voidReset
uint32_tGetFrameSamples
uint32_tGetTargetFrames
uint32_tGetMaxFrames
size_tGetQueuedFrames
boolIsPrimed
boolPushInserts one raw decoded frame at its sequence position.
boolPushPacketInserts one encoded packet, decoded later by Pop(decoder, ...).
boolPopFills out with the next raw frame.
boolPopDecodes the next packet through decoder.
const FVoiceJitterStats&GetStats
voidResetStats
int32_tSequenceDeltaSequence distance that treats the 16-bit counter as circular, so a wrap does not read as a 65000-frame jump backwards.

Function details

FVoiceJitterBuffer

C++
FVoiceJitterBuffer() = default

Configure

C++
void Configure(uint32_t frameSamples, uint32_t targetFrames, uint32_t maxFrames)

Reset

C++
void Reset()

GetFrameSamples

C++
uint32_t GetFrameSamples() const

GetTargetFrames

C++
uint32_t GetTargetFrames() const

GetMaxFrames

C++
uint32_t GetMaxFrames() const

GetQueuedFrames

C++
size_t GetQueuedFrames() const

IsPrimed

C++
bool IsPrimed() const

Push

C++
bool Push(uint16_t sequence, const int16_t* samples, uint32_t sampleCount)

Inserts one raw decoded frame at its sequence position. False when the frame was refused — a duplicate, a frame older than what has already played, or an overflow past maxFrames (the oldest is dropped to make room).

PushPacket

C++
bool PushPacket(uint16_t sequence, const uint8_t* payload, size_t len)

Inserts one encoded packet, decoded later by Pop(decoder, ...).

Pop

C++
bool Pop(std::vector<int16_t>& out)

Fills out with the next raw frame. True when a real frame was delivered, false when the buffer concealed (hole or starvation) — out is still filled in both cases, so the playback path never has to branch.

Pop

C++
bool Pop(IVoiceDecoder& decoder, std::vector<int16_t>& out)

Decodes the next packet through decoder. A hole is rebuilt from the packet after it (FEC for one frame, deep redundancy further back) when that packet is already here, and concealed by the decoder otherwise. True for a real or rebuilt frame, false for a concealed one.

GetStats

C++
const FVoiceJitterStats& GetStats() const

ResetStats

C++
void ResetStats()

SequenceDelta

C++
static int32_t SequenceDelta(uint16_t a, uint16_t b)

Sequence distance that treats the 16-bit counter as circular, so a wrap does not read as a 65000-frame jump backwards.

Generated from VoiceChat/FVoiceJitterBuffer.h via voicechat.json · Oct 26, 2026Version 1.0.0