Expand description
Opus payload format ([RFC 7587]), one packet per frame.
Structs§
- Opus
Packet - OpusPacket represents the Opus header that is stored in the payload of an RTP Packet
- Opus
Payloader - Packetizes Opus audio: one RTP payload per Opus packet, never fragmented and never aggregated, whatever the MTU (RFC 7587 section 4.2).
Constants§
- OPUS_
CLOCK_ RATE - The RTP clock rate of Opus, whatever the audio bandwidth coded (RFC 7587 section 4.1).
- OPUS_
DTX_ TIMESTAMP_ STEP - What DTX timestamp gaps are multiples of, in samples at 48 kHz: 2.5 ms, the shortest Opus frame (RFC 7587 section 3.1.3).
- OPUS_
MAX_ PACKET_ SAMPLES - The longest Opus packet, in samples at 48 kHz: 120 ms (RFC 6716 section 3.2.5).
Functions§
- opus_
packet_ samples - The duration of an Opus packet in samples at 48 kHz, which is its length in RTP timestamp units (RFC 7587 section 4.1), read from the TOC byte and the frame count (RFC 6716 section 3.1 and 3.2).