pub enum ChannelConfig {
Mono = 1,
Stereo = 2,
Three = 3,
Four = 4,
Five = 5,
FiveOne = 6,
SevenOne = 7,
}Expand description
The channel configuration of an MPEG-4 audio track.
Variants§
Mono = 1
1.0, channel: front-center.
Stereo = 2
2.0, channels: front-left, front-right.
Three = 3
3.0, channels: front-center, front-left, front-right.
Four = 4
4.0, channels: front-center, front-left, front-right, back-center.
Five = 5
5.0, channels: front-center, front-left, front-right, back-left, back-right.
FiveOne = 6
5.1, channels: front-center, front-left, front-right, back-left, back-right, LFE-channel.
SevenOne = 7
7.1, channels: front-center, front-left, front-right, side-left, side-right, back-left, back-right, LFE-channel.
Implementations§
Source§impl ChannelConfig
impl ChannelConfig
Sourcepub const fn channel_count(&self) -> u8
pub const fn channel_count(&self) -> u8
Returns the number of channels.
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelConfig
impl Debug for ChannelConfig
Source§impl Display for ChannelConfig
impl Display for ChannelConfig
Source§impl PartialEq for ChannelConfig
impl PartialEq for ChannelConfig
Source§impl TryFrom<u8> for ChannelConfig
impl TryFrom<u8> for ChannelConfig
impl Copy for ChannelConfig
impl Eq for ChannelConfig
impl StructuralPartialEq for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more