ReplayGainSettings class final
Aggregate of mpv's four ReplayGain properties (replaygain,
replaygain-preamp, replaygain-clip, replaygain-fallback).
Apply atomically via Player.setReplayGain. For one-off tweaks
use state.settings.replayGain.copyWith(preamp: -3). Read the current
configuration via PlayerSettings.replayGain or observe live changes
via PlayerStream.replayGain.
Constructors
- ReplayGainSettings({ReplayGain mode = ReplayGain.no, double preamp = 0.0, bool clip = false, double fallback = 0.0})
-
Creates a ReplayGain configuration. Each default mirrors the
corresponding mpv property default (normalization off).
const
Properties
- clip → bool
-
Whether to allow output clipping when normalizing loud tracks.
final
- fallback → double
-
Gain in dB applied to files without ReplayGain tags.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mode → ReplayGain
-
Normalization mode (off, per-track or per-album).
final
- preamp → double
-
Pre-amplification in dB applied before normalization.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{ReplayGain? mode, double? preamp, bool? clip, double? fallback}) → ReplayGainSettings - Returns a copy with the given fields replaced. Omitted fields keep their current value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override