pub struct StereoToMono;Expand description
Average a stereo i16 stream to mono: (l + r) >> 1 (floor). Byte-exact.
Trait Implementations§
Source§impl Clone for StereoToMono
impl Clone for StereoToMono
Source§fn clone(&self) -> StereoToMono
fn clone(&self) -> StereoToMono
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 StereoToMono
Source§impl Debug for StereoToMono
impl Debug for StereoToMono
Source§impl Default for StereoToMono
impl Default for StereoToMono
Source§fn default() -> StereoToMono
fn default() -> StereoToMono
Returns the “default value” for a type. Read more
Source§impl Element for StereoToMono
impl Element for StereoToMono
Source§fn output_format(&self, input: PcmFormat) -> Result<PcmFormat>
fn output_format(&self, input: PcmFormat) -> Result<PcmFormat>
The format this element emits for blocks in
input, or
Err(Unsupported) if it cannot take input at all.Source§fn max_output_bytes(&self, _input: PcmFormat, input_bytes: usize) -> usize
fn max_output_bytes(&self, _input: PcmFormat, input_bytes: usize) -> usize
Upper bound on the bytes
process writes for an input
block of input_bytes bytes in input. Defaults to input_bytes
(same-size elements); resamplers and channel converters override it.Auto Trait Implementations§
impl Freeze for StereoToMono
impl RefUnwindSafe for StereoToMono
impl Send for StereoToMono
impl Sync for StereoToMono
impl Unpin for StereoToMono
impl UnsafeUnpin for StereoToMono
impl UnwindSafe for StereoToMono
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