#[non_exhaustive]pub enum Layout {
Show 18 variants
None,
Mono,
Stereo,
Surround51,
Surround71,
Lcr,
Quad,
Surround50,
Surround70,
Surround512,
Surround514,
Surround712,
Surround714,
Surround916,
Ambisonics1,
Ambisonics2,
Ambisonics3,
Ambisonics4,
}Expand description
Channel layout of an audio bus. Each layout has one channel order, listed on its variant. Formats whose native order differs are mapped explicitly; a layout a format cannot express is refused rather than approximated.
Ls and Rs are the surrounds of layouts without side channels. Layouts that also have side
surrounds (Lss, Rss) list Ls and Rs as the rear surrounds before them. Height channels are
top front (Ltf, Rtf), top middle (Ltm, Rtm) and top rear (Ltr, Rtr); Lw and Rw are the wides.
A new variant also belongs in Layout::ALL, which formats search to recognize layouts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
No bus, for example the input of an instrument.
Mono
One center channel.
Stereo
Left, right.
Surround51
L R C LFE Ls Rs
Surround71
L R C LFE Ls Rs Lss Rss (7.1 surround with side channels)
Lcr
L R C
Quad
L R Ls Rs
Surround50
L R C Ls Rs
Surround70
L R C Ls Rs Lss Rss
Surround512
L R C LFE Ls Rs Ltm Rtm
Surround514
L R C LFE Ls Rs Ltf Rtf Ltr Rtr
Surround712
L R C LFE Ls Rs Lss Rss Ltm Rtm
Surround714
L R C LFE Ls Rs Lss Rss Ltf Rtf Ltr Rtr
Surround916
L R C LFE Ls Rs Lss Rss Ltf Rtf Ltr Rtr Ltm Rtm Lw Rw
Ambisonics1
First-order ambisonics: ACN channel order, SN3D normalization.
Ambisonics2
Second-order ambisonics: ACN channel order, SN3D normalization.
Ambisonics3
Third-order ambisonics: ACN channel order, SN3D normalization.
Ambisonics4
Fourth-order ambisonics: ACN channel order, SN3D normalization.