pub struct LoudnessHistory {
pub history_seconds: f32,
pub current_rms_db: f32,
pub current_peak_db: f32,
pub integrated_lufs: f32,
pub true_peak_db: f32,
/* private fields */
}Fields§
§history_seconds: f32§current_rms_db: f32§current_peak_db: f32§integrated_lufs: f32§true_peak_db: f32Implementations§
Source§impl LoudnessHistory
impl LoudnessHistory
pub fn new(history_seconds: f32) -> Self
pub fn push_sample(&mut self, left: f32, right: f32)
pub fn get_history_slice(&self) -> Vec<f32>
pub fn short_term_lufs(&self) -> f32
pub fn momentary_lufs(&self) -> f32
pub fn dynamic_range(&self) -> f32
Trait Implementations§
Source§impl Clone for LoudnessHistory
impl Clone for LoudnessHistory
Auto Trait Implementations§
impl Freeze for LoudnessHistory
impl RefUnwindSafe for LoudnessHistory
impl Send for LoudnessHistory
impl Sync for LoudnessHistory
impl Unpin for LoudnessHistory
impl UnsafeUnpin for LoudnessHistory
impl UnwindSafe for LoudnessHistory
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.