pub struct Normalizer { /* private fields */ }Expand description
Audio normalizer with RMS targeting and peak limiting.
§Configuration
target_rms: Desired RMS level in range [0.0, 1.0] (e.g., 0.5 for -6 dBFS)max_gain: Maximum gain multiplier to prevent over-amplification (e.g., 10.0)
§Safety
All output samples are hard-clamped to [-1.0, 1.0] to prevent clipping.
Implementations§
Trait Implementations§
Source§impl Clone for Normalizer
impl Clone for Normalizer
Source§fn clone(&self) -> Normalizer
fn clone(&self) -> Normalizer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Normalizer
impl Debug for Normalizer
impl Copy for Normalizer
Auto Trait Implementations§
impl Freeze for Normalizer
impl RefUnwindSafe for Normalizer
impl Send for Normalizer
impl Sync for Normalizer
impl Unpin for Normalizer
impl UnsafeUnpin for Normalizer
impl UnwindSafe for Normalizer
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