Struct qoaudio::FrameHeader
source · pub struct FrameHeader {
pub num_channels: u8,
pub sample_rate: u32,
pub num_samples_per_channel: u16,
}
Expand description
The metadata at the beginning of each frame of slices.
Fields§
§num_channels: u8
Number of channels in this frame
sample_rate: u32
Sample rate in HZ for this frame
num_samples_per_channel: u16
Samples per channel in this frame
Trait Implementations§
source§impl Clone for FrameHeader
impl Clone for FrameHeader
source§fn clone(&self) -> FrameHeader
fn clone(&self) -> FrameHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FrameHeader
impl Debug for FrameHeader
source§impl Default for FrameHeader
impl Default for FrameHeader
source§fn default() -> FrameHeader
fn default() -> FrameHeader
Returns the “default value” for a type. Read more
impl Copy for FrameHeader
Auto Trait Implementations§
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnwindSafe for FrameHeader
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