pub struct AudioLevels {
pub peak: f64,
pub peak_dbfs: f64,
pub rms: f64,
pub rms_dbfs: f64,
pub dynamic_range_db: f64,
pub passed: bool,
}Expand description
Audio level metrics.
Fields§
§peak: f64Peak amplitude (0.0-1.0)
peak_dbfs: f64Peak amplitude in dBFS
rms: f64RMS amplitude (0.0-1.0)
rms_dbfs: f64RMS amplitude in dBFS
dynamic_range_db: f64Dynamic range in dB (peak - noise floor)
passed: boolWhether levels are within acceptable range
Trait Implementations§
Source§impl Clone for AudioLevels
impl Clone for AudioLevels
Source§fn clone(&self) -> AudioLevels
fn clone(&self) -> AudioLevels
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 AudioLevels
impl Debug for AudioLevels
Auto Trait Implementations§
impl Freeze for AudioLevels
impl RefUnwindSafe for AudioLevels
impl Send for AudioLevels
impl Sync for AudioLevels
impl Unpin for AudioLevels
impl UnsafeUnpin for AudioLevels
impl UnwindSafe for AudioLevels
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 more