pub struct WavSpec {
pub channels: u16,
pub sample_rate: u32,
pub bits_per_sample: u16,
pub sample_format: SampleFormat,
}Expand description
Stream parameters: channel count, sample rate, precision, and encoding.
Fields§
§channels: u16Number of interleaved channels, at least 1.
sample_rate: u32Frames per second, at least 1.
bits_per_sample: u16Valid bits per sample (24 for a 24-in-32 file).
sample_format: SampleFormatInteger PCM or IEEE float.
Trait Implementations§
impl Copy for WavSpec
impl Eq for WavSpec
impl StructuralPartialEq for WavSpec
Auto Trait Implementations§
impl Freeze for WavSpec
impl RefUnwindSafe for WavSpec
impl Send for WavSpec
impl Sync for WavSpec
impl Unpin for WavSpec
impl UnsafeUnpin for WavSpec
impl UnwindSafe for WavSpec
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