pub enum OutputLayout {
Mono,
Stereo,
Quad,
Surround51,
Surround71,
}Expand description
Interleaved WAVE speaker order. LFE receives no point-source signal.
Variants§
Implementations§
Source§impl OutputLayout
impl OutputLayout
pub const fn channels(self) -> usize
pub fn from_channels(channels: usize) -> Result<Self>
Sourcepub const fn channel_mask(self) -> u32
pub const fn channel_mask(self) -> u32
WAVEFORMATEXTENSIBLE speaker mask; 7.1 uses back and side pairs.
Sourcepub fn downmix_stereo(self, input: &[f32], out: &mut [f32]) -> Result<usize>
pub fn downmix_stereo(self, input: &[f32], out: &mut [f32]) -> Result<usize>
Stereo matrix fold. Requires complete input frames and enough output room; the unwritten output suffix is untouched. No allocation on valid input. Each full-range column has unit squared gain, preserving individual-channel and uncorrelated-input power. Correlated channels can sum above unity; apply headroom/limiting AFTER this fold. LFE is omitted (no bass management).
Trait Implementations§
Source§impl Clone for OutputLayout
impl Clone for OutputLayout
Source§fn clone(&self) -> OutputLayout
fn clone(&self) -> OutputLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OutputLayout
Source§impl Debug for OutputLayout
impl Debug for OutputLayout
impl Eq for OutputLayout
Source§impl PartialEq for OutputLayout
impl PartialEq for OutputLayout
impl StructuralPartialEq for OutputLayout
Auto Trait Implementations§
impl Freeze for OutputLayout
impl RefUnwindSafe for OutputLayout
impl Send for OutputLayout
impl Sync for OutputLayout
impl Unpin for OutputLayout
impl UnsafeUnpin for OutputLayout
impl UnwindSafe for OutputLayout
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