pub struct Waveform {
pub duration_ms: u64,
pub peaks: Vec<f32>,
pub bucket_frames: u64,
pub sample_rate: u32,
}Expand description
Original-sample envelope, before playback normalization, volume or effects.
Fields§
§duration_ms: u64Complete source duration derived from decoded frame count.
peaks: Vec<f32>Equal frame buckets; the final bucket can be shorter.
bucket_frames: u64Complete source frames in each bucket except the last.
sample_rate: u32Original source sampling rate.
Auto Trait Implementations§
impl Freeze for Waveform
impl RefUnwindSafe for Waveform
impl Send for Waveform
impl Sync for Waveform
impl Unpin for Waveform
impl UnwindSafe for Waveform
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