VirtualbassEffect class final

Configuration for the virtualbass audio effect.

Apply audio Virtual Bass filter.

This filter accepts stereo input and produce stereo with LFE (2.1) channels output. The newly produced LFE channel have enhanced virtual bass originally obtained from both stereo channels. This filter outputs front left and front right channels unchanged as available in stereo input.

The filter accepts the following options:

Parameters:

  • cutoff: Set the virtual bass cutoff frequency. Default value is 250 Hz. Allowed range is from 100 to 500 Hz. (range 100..500, default 250)
  • strength: Set the virtual bass strength. Allowed range is from 0.5 to 3. Default value is 3. (range 0.5..3, default 3, runtime-tunable)
Inheritance

Constructors

VirtualbassEffect({bool enabled = true, double cutoff = 250.0, double strength = 3.0})
Creates an VirtualbassEffect with the given parameter values.
const

Properties

cutoff → double
set virtual bass cutoff
final
enabled → bool
Whether this effect is applied. false keeps it in the list, with its settings, without inserting it in the chain.
final
filter → AudioFilter
The filter this stage runs, as a typed identifier (null for a RawAudioEffect).
no setteroverride
filterName → String
The lavfi filter this stage runs, e.g. equalizer.
no setteroverride
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strength → double
set virtual bass strength
final

Methods

copyWith({bool? enabled, double? cutoff, double? strength}) → VirtualbassEffect
Returns a copy of this VirtualbassEffect with the given fields replaced.
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.
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

cutoffDefault → const double
Default value for cutoff.
cutoffMax → const double
Maximum value for cutoff.
cutoffMin → const double
Minimum value for cutoff.
strengthDefault → const double
Default value for strength.
strengthMax → const double
Maximum value for strength.
strengthMin → const double
Minimum value for strength.