pub struct Convert { /* private fields */ }Expand description
Re-encode every sample to to (see codec::pcm::convert
for the exact rules). Same-format input is a byte copy.
Implementations§
Trait Implementations§
impl Copy for Convert
Source§impl Element for Convert
impl Element for Convert
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.impl Eq for Convert
impl StructuralPartialEq for Convert
Auto Trait Implementations§
impl Freeze for Convert
impl RefUnwindSafe for Convert
impl Send for Convert
impl Sync for Convert
impl Unpin for Convert
impl UnsafeUnpin for Convert
impl UnwindSafe for Convert
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