pub struct Selection {
pub gain_db: f32,
pub source: Source,
pub source_peak: Option<f32>,
}Expand description
The gain sent to the DSP and any corresponding peak measurement.
Fields§
§gain_db: f32Gain to apply after decoding, in dB, adjusted to target_lufs.
source: SourceWhich tag supplied the gain.
source_peak: Option<f32>Linear peak supplied by ReplayGain, before applying gain_db.
Opus R128 has no corresponding peak tag.
Trait Implementations§
impl Copy for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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