Skip to main content

multiopus_layout

Function multiopus_layout 

Source
pub(crate) fn multiopus_layout(
    channels: i32,
) -> Option<(i32, i32, &'static [u8])>
Expand description

Chromium’s multistream-Opus surround layout for a channel count, as (streams, coupled, mapping); None for anything but 5.1 (6) or 7.1 (8).

The same tables are advertised in the WebRTC SDP (multiopus), so the browser’s decoder inverts exactly the stream/coupling/mapping this encoder applies.