Skip to main content

Module opus

Module opus 

Source
Expand description

Opus payload format ([RFC 7587]), one packet per frame.

Structs§

OpusPacket
OpusPacket represents the Opus header that is stored in the payload of an RTP Packet
OpusPayloader
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).