pub enum AudioDetector {
Silence {
noise_db: f64,
min_duration_s: f64,
mono: bool,
},
Ebur128 {
true_peak: bool,
},
}Expand description
An audio-domain detector.
Variants§
Silence
silencedetect: reports silent regions.
noise_db: noise floor in dB (rendered with the requireddBsuffix, e.g.-30dB).min_duration_s: minimum silence duration to report (seconds).mono: whentrue, detect per channel (addsmono=1); the parser then sees.N(1-based) channel suffixes on the metadata keys.
Ebur128
ebur128 metadata=1: EBU R128 loudness measurement.
true_peak adds peak=true so per-channel true-peak keys are emitted.
Trait Implementations§
Source§impl Clone for AudioDetector
impl Clone for AudioDetector
Source§fn clone(&self) -> AudioDetector
fn clone(&self) -> AudioDetector
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 AudioDetector
impl Debug for AudioDetector
Source§impl PartialEq for AudioDetector
impl PartialEq for AudioDetector
Source§fn eq(&self, other: &AudioDetector) -> bool
fn eq(&self, other: &AudioDetector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AudioDetector
Auto Trait Implementations§
impl Freeze for AudioDetector
impl RefUnwindSafe for AudioDetector
impl Send for AudioDetector
impl Sync for AudioDetector
impl Unpin for AudioDetector
impl UnsafeUnpin for AudioDetector
impl UnwindSafe for AudioDetector
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