Skip to main content

Module channel

Module channel 

Source
Expand description

Audio channel layout definitions.

This module provides the ChannelLayout enum for representing common audio channel configurations.

§Examples

use ff_format::channel::ChannelLayout;

let stereo = ChannelLayout::Stereo;
assert_eq!(stereo.channels(), 2);
assert!(stereo.is_stereo());

let surround = ChannelLayout::Surround5_1;
assert_eq!(surround.channels(), 6);
assert!(surround.is_surround());

Enums§

ChannelLayout
Audio channel layout representing the speaker configuration.