pub struct WavHeader {
pub sample_format: SampleFormat,
pub channels: u16,
pub sample_rate: u32,
pub bits_per_sample: u16,
pub list_chunk: Option<ListChunk>,
}
Expand description
Wav file header
Fields§
§sample_format: SampleFormat
§channels: u16
§sample_rate: u32
§bits_per_sample: u16
§list_chunk: Option<ListChunk>
Implementations§
Source§impl WavHeader
impl WavHeader
pub fn new_mono_i16_cd() -> Self
pub fn new_mono_i16_radio() -> Self
pub fn new_mono_f32_cd() -> Self
pub fn new_mono() -> Self
pub fn new_stereo() -> Self
pub fn set_int_format(&mut self)
pub fn set_float_format(&mut self)
Trait Implementations§
impl StructuralPartialEq for WavHeader
Auto Trait Implementations§
impl Freeze for WavHeader
impl RefUnwindSafe for WavHeader
impl Send for WavHeader
impl Sync for WavHeader
impl Unpin for WavHeader
impl UnwindSafe for WavHeader
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