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

Channel Layout Specifications

Usage Example

// Configure for home theater system
AudioStreamConfig(
channelLayoutType = AudioChannelLayoutType.STANDARD,
channelLayout = AudioChannelLayout.OUTPUT_LAYOUT_5_1_2,
// ...other parameters
)

Entries

Link copied to clipboard

Invalid output layout (uninitialized or error state).

Link copied to clipboard

Single audio channel layout.

Link copied to clipboard

Stereo channel layout (left/right).

Link copied to clipboard

Quadraphonic channel layout (front-left/front-right/rear-left/rear-right), also this is default layout.

Link copied to clipboard

Quad side channel layout (alternative quad configuration).

Link copied to clipboard

Standard 5.1 surround sound layout.

Link copied to clipboard

Extended 6.1 surround sound layout.

Link copied to clipboard

Home theater 7.1 surround sound layout (5.1 + side left/side right).

Link copied to clipboard

Dolby Atmos 5.1.2 channel layout with height channels.

Properties

Link copied to clipboard
val entries: EnumEntries<AudioChannelLayout>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun valueOf(value: String): AudioChannelLayout

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.