pub struct Mp3Info {
pub sample_rate: u32,
pub channels: usize,
pub frames: usize,
pub duration: f64,
pub bitrate: u32,
pub mpeg_version: u8,
pub encoder_delay: usize,
pub encoder_padding: usize,
}Fields§
§sample_rate: u32§channels: usize§frames: usizeCoded MPEG audio frames, excluding the Info frame; not PCM sample frames.
duration: f64§bitrate: u32§mpeg_version: u8§encoder_delay: usizeEncoder priming in source-sample frames (528 for audiobox exports). An MPEG decoder adds its own delay; FFmpeg’s Layer III delay is 529.
encoder_padding: usizeEnd padding in the gapless convention, including the decoder-delay credit. Exact PCM length is coded frames * samples per MPEG frame - delay - padding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mp3Info
impl RefUnwindSafe for Mp3Info
impl Send for Mp3Info
impl Sync for Mp3Info
impl Unpin for Mp3Info
impl UnsafeUnpin for Mp3Info
impl UnwindSafe for Mp3Info
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