DcshiftSettings class final
Configuration for the dcshift audio effect.
Apply a DC shift to the audio.
This can be useful to remove a DC offset (caused perhaps by a hardware problem in the recording chain) from the audio. The effect of a DC offset is reduced headroom and hence volume. The astats filter can be used to determine if a signal has a DC offset.
Parameters:
- limitergain: Optional. It should have a value much less than 1 (e.g. 0.05 or 0.02) and is used to prevent clipping. (range 0..1, default 0)
- shift: Set the DC shift, allowed range is
-1, 1. It indicates the amount to shift the audio. (range -1..1, default 0)
Constructors
- DcshiftSettings({bool enabled = false, double limitergain = 0.0, double shift = 0.0})
-
const
Properties
- enabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- limitergain → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shift → double
-
final
Methods
-
copyWith(
{bool? enabled, double? limitergain, double? shift}) → DcshiftSettings -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFilterString(
) → String - Returns the audio chain entry for this effect. Only non-default parameters are emitted.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override