pub struct NormalizationOptions {
pub input_dir: PathBuf,
pub output_dir: Option<PathBuf>,
pub sample_percentage: f64,
pub trim_percentage: f64,
pub target_lufs: Option<f64>,
pub true_peak_db: f64,
pub num_threads: Option<usize>,
}Expand description
Configuration options for audio normalization process
Fields§
§input_dir: PathBufInput directory containing audio files to process
output_dir: Option<PathBuf>Output directory for normalized audio files. If not set, override the audio in input dir.
sample_percentage: f64Percentage of files to sample for calculating target loudness (0.0 to 1.0)
trim_percentage: f64Percentage of measurements to trim when calculating average loudness (0.0 to 0.5)
target_lufs: Option<f64>Target loudness in LUFS (Loudness Units Full Scale)
true_peak_db: f64Target true peak in dBTP (decibels True Peak)
num_threads: Option<usize>Number of threads for parallel processing
Trait Implementations§
Source§impl Clone for NormalizationOptions
impl Clone for NormalizationOptions
Source§fn clone(&self) -> NormalizationOptions
fn clone(&self) -> NormalizationOptions
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 NormalizationOptions
impl Debug for NormalizationOptions
Auto Trait Implementations§
impl Freeze for NormalizationOptions
impl RefUnwindSafe for NormalizationOptions
impl Send for NormalizationOptions
impl Sync for NormalizationOptions
impl Unpin for NormalizationOptions
impl UnwindSafe for NormalizationOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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