Skip to main content

Module ogg

Module ogg 

Source
Expand description

Reader for the Ogg Opus stream an audio sink serves: pages are taken as they arrive and split into packets, a packet continued across pages reassembled. The first packet is the OpusHead the audio track is declared from; every later packet comes with the page’s granule position, the 48 kHz sample count at the end of the last packet the page completes, which is the recorder’s audio clock.

Structs§

OpusHead
What OpusHead declares; mapping holds the stream count, coupled count, and channel table for channel mapping family 1 and is empty for family 0.
PageReader
Splits an Ogg stream into packets.

Functions§

parse_opus_head