pub struct AudioNormalizer { /* private fields */ }Expand description
Audio normalizer for applying loudness normalization.
Implementations§
Source§impl AudioNormalizer
impl AudioNormalizer
Sourcepub fn new(config: NormalizationConfig) -> Self
pub fn new(config: NormalizationConfig) -> Self
Creates a new audio normalizer with the specified configuration.
Sourcepub fn with_standard(standard: LoudnessStandard) -> Self
pub fn with_standard(standard: LoudnessStandard) -> Self
Creates a normalizer with the specified standard.
Sourcepub fn target_lufs(&self) -> f64
pub fn target_lufs(&self) -> f64
Gets the target loudness in LUFS.
Sourcepub fn max_true_peak_dbtp(&self) -> f64
pub fn max_true_peak_dbtp(&self) -> f64
Gets the maximum true peak in dBTP.
Sourcepub fn calculate_gain(&self, measured_lufs: f64, measured_peak_dbtp: f64) -> f64
pub fn calculate_gain(&self, measured_lufs: f64, measured_peak_dbtp: f64) -> f64
Sourcepub fn needs_normalization(&self, measured_lufs: f64, tolerance: f64) -> bool
pub fn needs_normalization(&self, measured_lufs: f64, tolerance: f64) -> bool
Checks if normalization is needed.
§Arguments
measured_lufs- The measured integrated loudnesstolerance- Tolerance in LU (default: 0.5)
Sourcepub fn get_filter_string(&self) -> String
pub fn get_filter_string(&self) -> String
Gets the filter string for loudness normalization.
This generates the filter parameters for audio processing.
Auto Trait Implementations§
impl Freeze for AudioNormalizer
impl RefUnwindSafe for AudioNormalizer
impl Send for AudioNormalizer
impl Sync for AudioNormalizer
impl Unpin for AudioNormalizer
impl UnsafeUnpin for AudioNormalizer
impl UnwindSafe for AudioNormalizer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more