pub struct AudioBar {
pub start_time: MediaTime,
pub duration: MediaDuration,
pub peak: f32,
pub rms: f32,
}Expand description
One bar in an AudioHistogram — a quantized window of audio
summarized by its peak + RMS.
Fields§
§start_time: MediaTimeWhen this bar’s window starts on the media timeline.
duration: MediaDurationWindow duration.
peak: f32Maximum |sample| over the window. [0, 1] for normalized audio.
rms: f32Root-mean-square over the window. [0, 1] for normalized audio.
Trait Implementations§
impl Copy for AudioBar
impl StructuralPartialEq for AudioBar
Auto Trait Implementations§
impl Freeze for AudioBar
impl RefUnwindSafe for AudioBar
impl Send for AudioBar
impl Sync for AudioBar
impl Unpin for AudioBar
impl UnsafeUnpin for AudioBar
impl UnwindSafe for AudioBar
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