pub struct Mp3Analysis {
pub frame_count: usize,
pub mpeg_version: String,
pub channel_mode: String,
pub min_gain: u8,
pub max_gain: u8,
pub avg_gain: f64,
pub headroom_steps: i32,
pub headroom_db: f64,
}Expand description
Result of MP3 file analysis
Fields§
§frame_count: usizeNumber of audio frames in the file
mpeg_version: StringMPEG version detected (1, 2, or 2.5)
channel_mode: StringChannel mode (Stereo, Joint Stereo, Dual Channel, Mono)
min_gain: u8Minimum global_gain value found across all granules
max_gain: u8Maximum global_gain value found across all granules
avg_gain: f64Average global_gain value
headroom_steps: i32Maximum safe positive adjustment in steps (before clipping)
headroom_db: f64Maximum safe positive adjustment in dB
Trait Implementations§
Source§impl Clone for Mp3Analysis
impl Clone for Mp3Analysis
Source§fn clone(&self) -> Mp3Analysis
fn clone(&self) -> Mp3Analysis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Mp3Analysis
impl RefUnwindSafe for Mp3Analysis
impl Send for Mp3Analysis
impl Sync for Mp3Analysis
impl Unpin for Mp3Analysis
impl UnwindSafe for Mp3Analysis
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