pub struct WavHeader {
pub format: WavFormat,
pub channels: u16,
pub sample_rate: u32,
pub bits_per_sample: u16,
pub samples_per_channel: usize,
}
Expand description
WAV file header information
Fields§
§format: WavFormat
WAV format type
channels: u16
Number of channels
sample_rate: u32
Sample rate in Hz
bits_per_sample: u16
Bits per sample
samples_per_channel: usize
Total number of samples per channel
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more