pub struct MixFormat {
pub sample_rate: u32,
pub channels: u16,
}Expand description
The format every input is resampled to and every output frame carries.
One value rather than three fields, packed into a word, so an input
resampling on its own thread can never catch a sample rate from one
setting and a channel count from another. format and channel_layout
are derived from it rather than stored: this mixer works in interleaved
f32 and the layout is whatever is default for the channel count, so a
stored copy of either could only ever disagree.
Fields§
§sample_rate: u32§channels: u16Trait Implementations§
impl Copy for MixFormat
impl Eq for MixFormat
impl StructuralPartialEq for MixFormat
Auto Trait Implementations§
impl Freeze for MixFormat
impl RefUnwindSafe for MixFormat
impl Send for MixFormat
impl Sync for MixFormat
impl Unpin for MixFormat
impl UnsafeUnpin for MixFormat
impl UnwindSafe for MixFormat
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