pub struct AudioQualityConfig {
pub min_rms_dbfs: f64,
pub max_peak_dbfs: f64,
pub no_clipping: bool,
pub silence_threshold_dbfs: f64,
pub min_silence_duration_secs: f64,
pub max_silence_pct: f64,
}Expand description
Configuration for audio quality checks.
Fields§
§min_rms_dbfs: f64Minimum acceptable RMS in dBFS (default: -40.0)
max_peak_dbfs: f64Maximum acceptable peak in dBFS (default: -0.1, just below clipping)
no_clipping: boolWhether to fail on any clipping (default: true)
silence_threshold_dbfs: f64Silence threshold in dBFS (default: -60.0)
min_silence_duration_secs: f64Minimum silence duration to report in seconds (default: 0.5)
max_silence_pct: f64Maximum acceptable silence percentage (default: 80.0)
Implementations§
Source§impl AudioQualityConfig
impl AudioQualityConfig
Sourcepub fn with_min_rms_dbfs(self, dbfs: f64) -> Self
pub fn with_min_rms_dbfs(self, dbfs: f64) -> Self
Set minimum RMS level.
Sourcepub fn with_max_peak_dbfs(self, dbfs: f64) -> Self
pub fn with_max_peak_dbfs(self, dbfs: f64) -> Self
Set maximum peak level.
Sourcepub const fn with_no_clipping(self, no_clipping: bool) -> Self
pub const fn with_no_clipping(self, no_clipping: bool) -> Self
Set clipping policy.
Sourcepub fn with_silence_threshold_dbfs(self, dbfs: f64) -> Self
pub fn with_silence_threshold_dbfs(self, dbfs: f64) -> Self
Set silence threshold.
Trait Implementations§
Source§impl Clone for AudioQualityConfig
impl Clone for AudioQualityConfig
Source§fn clone(&self) -> AudioQualityConfig
fn clone(&self) -> AudioQualityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AudioQualityConfig
impl Debug for AudioQualityConfig
Auto Trait Implementations§
impl Freeze for AudioQualityConfig
impl RefUnwindSafe for AudioQualityConfig
impl Send for AudioQualityConfig
impl Sync for AudioQualityConfig
impl Unpin for AudioQualityConfig
impl UnsafeUnpin for AudioQualityConfig
impl UnwindSafe for AudioQualityConfig
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<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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().