pub enum MultichannelConfigOrder {
Custom(Vec<AudioChannel>),
Native(AudioChannelMask),
Unspecified,
Unknown(AudioChannelOrder),
}
Expand description
Multichannel configuration
Describes the configuration of the audio channels in a multichannel audio stream.
Contained in an AudioPacket::MultichannelConfig
.
Variants§
Custom(Vec<AudioChannel>)
Custom channel order
The channels have a custom order that is explicitly defined by this packet.
Native(AudioChannelMask)
Native channel order
Only the channels flagged in this packet are present in the stream
in the order they are defined by the AudioChannelMask
.
You can perform a Bitwise AND (i.e., audioChannelFlags & AudioChannelMask.xxx) to see if a specific audio channel is present.
Unspecified
The channel order is unspecified, only the channel count is known.
Unknown(AudioChannelOrder)
An unknown channel order.
Neither Unspecified
, Native
,
nor Custom
.
Trait Implementations§
Source§impl Clone for MultichannelConfigOrder
impl Clone for MultichannelConfigOrder
Source§fn clone(&self) -> MultichannelConfigOrder
fn clone(&self) -> MultichannelConfigOrder
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 MultichannelConfigOrder
impl Debug for MultichannelConfigOrder
Source§impl PartialEq for MultichannelConfigOrder
impl PartialEq for MultichannelConfigOrder
impl StructuralPartialEq for MultichannelConfigOrder
Auto Trait Implementations§
impl Freeze for MultichannelConfigOrder
impl RefUnwindSafe for MultichannelConfigOrder
impl Send for MultichannelConfigOrder
impl Sync for MultichannelConfigOrder
impl Unpin for MultichannelConfigOrder
impl UnwindSafe for MultichannelConfigOrder
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