#[non_exhaustive]pub struct TagsOnlyOptions {
pub track_gain_db: f64,
pub track_peak: f64,
pub album: Option<(f64, f64)>,
pub mode: AnalysisMode,
pub tag_layout: TagLayout,
pub preserve_timestamp: bool,
}Expand description
Values written by write_replaygain_tags_only.
Unlike the apply path these are absolute: no gain is baked into the audio, so the tag carries the full gain a player should apply.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.track_gain_db: f64REPLAYGAIN_TRACK_GAIN in dB.
track_peak: f64REPLAYGAIN_TRACK_PEAK as a linear peak.
album: Option<(f64, f64)>(gain_db, peak) for the REPLAYGAIN_ALBUM_* pair, when the caller
analyzed an album.
mode: AnalysisModeMeasurement mode, recorded as REPLAYGAIN_ALGORITHM in the BS.1770
modes.
tag_layout: TagLayoutMP3 only: which container the values go in.
preserve_timestamp: boolRestore the file’s mtime after writing.
Implementations§
Source§impl TagsOnlyOptions
impl TagsOnlyOptions
Sourcepub fn new(track_gain_db: f64, track_peak: f64, mode: AnalysisMode) -> Self
pub fn new(track_gain_db: f64, track_peak: f64, mode: AnalysisMode) -> Self
Construct with the track values; album stays unset and the layout
defaults to TagLayout::Split.
Trait Implementations§
Source§impl Clone for TagsOnlyOptions
impl Clone for TagsOnlyOptions
Source§fn clone(&self) -> TagsOnlyOptions
fn clone(&self) -> TagsOnlyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TagsOnlyOptions
impl RefUnwindSafe for TagsOnlyOptions
impl Send for TagsOnlyOptions
impl Sync for TagsOnlyOptions
impl Unpin for TagsOnlyOptions
impl UnsafeUnpin for TagsOnlyOptions
impl UnwindSafe for TagsOnlyOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more