pub struct Params {
pub tag: u16,
pub channels: u16,
pub sample_rate: u32,
pub avg_bytes_per_sec: u32,
pub block_align: u16,
pub flags: u16,
}Expand description
Stream parameters, mostly from the WAVEFORMATEX header.
Fields§
§tag: u16Format tag; must be WMAV2.
channels: u16The number of channels: 1 or 2.
sample_rate: u32The sample rate, in samples per second.
avg_bytes_per_sec: u32The average data rate, in bytes per second.
block_align: u16Packet size in bytes.
flags: u16The codec’s flags2 word (extradata bytes 4..6 in ASF); XWMA_FLAGS for xWMA.
Implementations§
Trait Implementations§
impl Copy for Params
impl Eq for Params
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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