pub struct InputNormalizer { /* private fields */ }Expand description
Per-input decoding, channel mapping, and stateful resampling before CspaMixer.
Uses no heap allocations in steady state.
Implementations§
Source§impl InputNormalizer
impl InputNormalizer
pub fn new( input_format: Format, working_format: Format, max_input_frames_per_call: usize, ) -> Result<InputNormalizer, Reason>
pub fn input_format(&self) -> &Format
pub fn working_format(&self) -> &Format
pub fn is_identity_bypass(&self) -> bool
pub fn is_resampled(&self) -> bool
pub fn group_delay_input_frames(&self) -> usize
pub fn max_output_frames(&self, max_input_frames: usize) -> usize
pub fn stats(&self) -> ConversionStats
pub fn reset(&mut self)
pub fn reset_for_input_format( &mut self, new_input_format: Format, max_input_frames_per_call: usize, ) -> Result<(), Reason>
Auto Trait Implementations§
impl Freeze for InputNormalizer
impl RefUnwindSafe for InputNormalizer
impl Send for InputNormalizer
impl Sync for InputNormalizer
impl Unpin for InputNormalizer
impl UnsafeUnpin for InputNormalizer
impl UnwindSafe for InputNormalizer
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