Equalizer class

Defines an Equalizer instance for usage in a Player.

Use Equalizer.createEmpty for creating a default equalizer & Equalizer.createMode for creating an equalizer using a preset from EqualizerMode.

Example

Player player = new Player(id: 0);
Equalizer equalizer = Equalizer.createMode(EqualizerMode.party);
player.setEqualizer(equalizer);

Constructors

Equalizer.createEmpty()
Creates a default Equalizer instance with all values set to 0.0.
factory
Equalizer.createMode(EqualizerMode mode)
Creates an Equalizer instance with any preset from EqualizerMode.
factory

Properties

bandAmps Map<double, double>
Values of amps of various bands in Equalizer. Use Equalizer.setBandAmp to change values.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
Unique Id associated with this Equalizer.
getter/setter pair
mode EqualizerMode?
Preset if Equalizer is initialized using Equalizer.createMode, else null.
getter/setter pair
preAmp double
Preamp value of the Equalizer. Use Equalizer.setPreAmp to change value.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBandAmp(double band, double amp) → void
Sets value of any particular band from Equalizer.bandAmps. Band whose amp needs to be changed, must be present in Equalizer.bandAmps.
setPreAmp(double amp) → void
Sets value of Equalizer.preAmp.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited