Skip to main content

RANGE_BUF_MAX

Constant RANGE_BUF_MAX 

Source
pub const RANGE_BUF_MAX: usize = 2048;
Expand description

Maximum range-coder buffer capacity. Opus packets are bounded by 1276 bytes (RFC 6716 §3.1); standalone CELT usage (e.g. tests) may use up to 2048, so the heap-free buffer is sized for that. The Opus encoder additionally clamps its per-frame budget to OPUS_MAX_PACKET_BYTES = 1276 (see lib.rs).