Skip to main content

Module red

Module red 

Source
Expand description

RFC 2198 redundant audio as a client’s microphone sends it: where each block of a payload sits, before anything is decoded. Nothing here reaches outside the module, so a fuzz build (fuzz/) compiles it on its own.

Constants§

RED_MAX_DISTANCE 🔒
Max redundant copies per frame and RED history depth.

Functions§

red_blocks 🔒
The blocks of an RFC 2198 payload, oldest first, as (ts, start, len) within it: each redundant block at primary_ts less its 14-bit offset (an empty one left out), then the primary, which is whatever bytes remain. None for a payload whose headers or blocks run past it, or that carries more than RED_MAX_DISTANCE redundant blocks.

Type Aliases§

Blocks 🔒
The blocks of a payload, oldest first, as (ts, start, len); red_blocks says how many.