AudioChannelLayout
Defines standard audio channel layouts for spatial audio configurations.
This enum specifies industry-standard speaker arrangements for different audio playback environments. Used with AudioStreamConfig to define physical speaker positioning when using standard channel layouts, the system default is AudioChannelLayout.OUTPUT_LAYOUT_STEREO.
Channel Layout Types
AudioChannelLayoutType.STANDARD: Standard channel layout with predefined configurations.
AudioChannelLayoutType.AMBISONICS: Ambisonics layout for spherical harmonic-based audio rendering.
Channel Layout Specifications
OUTPUT_LAYOUT_INVALID: Indicates uninitialized/invalid configuration.
OUTPUT_LAYOUT_MONO: Single channel audio (Center).
OUTPUT_LAYOUT_STEREO: 2-channel (Left + Right).
OUTPUT_LAYOUT_QUAD: 4-channel (Front-Left + Front-Right + Rear-Left + Rear-Right).
OUTPUT_LAYOUT_QUADSIDE: Alternative quadraphonic layout with side speakers.
OUTPUT_LAYOUT_5_1: 6-channel surround (Front L/R, Center, LFE, Rear L/R).
OUTPUT_LAYOUT_6_1: 7-channel surround, extended 6.1 surround sound layout (5.1 + rear center).
OUTPUT_LAYOUT_7_1: 8-channel surround,Home theater 7.1 surround sound layout (5.1 + side left/side right).
OUTPUT_LAYOUT_5_1_2: 8-channel Dolby Atmos® layout (5.1 base + 2 overhead).
Usage Example
// Configure for home theater system
AudioStreamConfig(
channelLayoutType = AudioChannelLayoutType.STANDARD,
channelLayout = AudioChannelLayout.OUTPUT_LAYOUT_5_1_2,
// ...other parameters
)Entries
Invalid output layout (uninitialized or error state).
Single audio channel layout.
Stereo channel layout (left/right).
Quadraphonic channel layout (front-left/front-right/rear-left/rear-right), also this is default layout.
Quad side channel layout (alternative quad configuration).
Standard 5.1 surround sound layout.
Extended 6.1 surround sound layout.
Home theater 7.1 surround sound layout (5.1 + side left/side right).
Dolby Atmos 5.1.2 channel layout with height channels.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.