pub struct LoudnessNormalization {
pub gain_db: f64,
pub integrated_lufs: f64,
pub true_peak_dbtp: f64,
pub peak_limited: bool,
pub limiter_limited: bool,
}Expand description
A static gain to a loudness target, bounded by a true-peak ceiling and any master limiter.
Fields§
§gain_db: f64Gain to apply, in dB.
integrated_lufs: f64Integrated loudness after the gain, in LUFS.
true_peak_dbtp: f64True peak after the gain, in dBTP.
peak_limited: boolWhether a peak bound (ceiling or limiter) set the gain, leaving the result under target.
limiter_limited: boolWhether the master limiter threshold was the binding bound.
Implementations§
Source§impl LoudnessNormalization
impl LoudnessNormalization
Sourcepub fn plan(
report: &LoudnessReport,
target_lufs: f64,
ceiling_dbtp: f64,
limiter_threshold: Option<f64>,
) -> Option<Self>
pub fn plan( report: &LoudnessReport, target_lufs: f64, ceiling_dbtp: f64, limiter_threshold: Option<f64>, ) -> Option<Self>
The gain that moves report to target_lufs, lowered so the true peak stays at or below
ceiling_dbtp and, with a master limiter at linear limiter_threshold, the sample peak
stays LIMITER_MARGIN_DB under it (the limiter detects sample peaks), so it never acts.
None without integrated loudness, or for non-finite inputs or a non-positive threshold.
Sourcepub fn linear_gain(&self) -> f64
pub fn linear_gain(&self) -> f64
The gain as a linear factor.
Trait Implementations§
Source§impl Clone for LoudnessNormalization
impl Clone for LoudnessNormalization
impl Copy for LoudnessNormalization
Source§impl Debug for LoudnessNormalization
impl Debug for LoudnessNormalization
Source§impl PartialEq for LoudnessNormalization
impl PartialEq for LoudnessNormalization
impl StructuralPartialEq for LoudnessNormalization
Auto Trait Implementations§
impl Freeze for LoudnessNormalization
impl RefUnwindSafe for LoudnessNormalization
impl Send for LoudnessNormalization
impl Sync for LoudnessNormalization
impl Unpin for LoudnessNormalization
impl UnsafeUnpin for LoudnessNormalization
impl UnwindSafe for LoudnessNormalization
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