pub struct Chmap {
pub mode: ChmapMode,
pub entries: Vec<ChmapEntry>,
}Expand description
The data to express channel map of PCM substream in TLV (Type-Length-Value) of ALSA control interface.
It has three variants below;
SNDRV_CTL_TLVT_CHMAP_FIXED(=0x101)SNDRV_CTL_TLVT_CHMAP_VAR(=0x102)SNDRV_CTL_TLVT_CHMAP_PAIRED(=0x103)
The length of value field is variable depending on the number of channels.
Fields§
§mode: ChmapModeThe mode of map.
entries: Vec<ChmapEntry>The entries of map corresponding to each channel.
Trait Implementations§
Source§impl<'a> TlvData<'a> for Chmap
impl<'a> TlvData<'a> for Chmap
Source§fn value_type(&self) -> u32
fn value_type(&self) -> u32
Return the value of type field. It should come from UAPI of Linux kernel.
Source§fn value_length(&self) -> usize
fn value_length(&self) -> usize
Return the length of value field. It should be in byte unit and multiples of 4 as result.
impl Eq for Chmap
impl StructuralPartialEq for Chmap
Auto Trait Implementations§
impl Freeze for Chmap
impl RefUnwindSafe for Chmap
impl Send for Chmap
impl Sync for Chmap
impl Unpin for Chmap
impl UnwindSafe for Chmap
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