Module multistream

Module multistream 

Source
Expand description

The multistream API allows individual Opus streams to be combined into a single packet, enabling support for up to 255 channels

Multistream Opus streams can contain up to 255 elementary Opus streams. These may be either “uncoupled” or “coupled”, indicating that the decoder is configured to decode them to either 1 or 2 channels, respectively. The streams are ordered so that all coupled streams appear at the beginning.

The output channels specified by the encoder should use the Vorbis channel ordering. A decoder may wish to apply an additional permutation to the mapping the encoder used to achieve a different output channel order (e.g. for outputting in WAV order).

Each multistream packet contains an Opus packet for each stream, and all of the Opus packets in a single multistream packet must have the same duration. Therefore the duration of a multistream packet can be extracted from the TOC sequence of the first stream, which is located at the beginning of the packet.

Structs§

Config
Multistream configuration
Decoder
OPUS multistream decoder
Encoder
OPUS multistream encoder