pub struct PcmFormat {
pub format_tag: u16,
pub channels: u16,
pub sample_rate: u32,
pub average_bytes_per_second: u32,
pub block_align: u16,
pub bits_per_sample: u16,
}
Available on crate feature
utils-pcm
only.Expand description
PCM Audio Format
Fields§
§format_tag: u16
The format tag
channels: u16
The number of channels
sample_rate: u32
The sample rate
average_bytes_per_second: u32
The average bytes per second
block_align: u16
The block alignment
bits_per_sample: u16
The bits per sample
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PcmFormat
impl RefUnwindSafe for PcmFormat
impl Send for PcmFormat
impl Sync for PcmFormat
impl Unpin for PcmFormat
impl UnwindSafe for PcmFormat
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> 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