createEmpty static method

Equalizer createEmpty()

Creates a default Equalizer instance with all values set to 0.0.

Implementation

static Equalizer createEmpty() {
  Equalizer equalizer = new _Equalizer();
  final _equalizer = EqualizerFFI.createEmpty(equalizer);
  equalizer.id = _equalizer.ref.id;
  equalizer.preAmp = equalizer.preAmp;
  equalizer.mode = null;
  equalizer.bandAmps = {};
  for (int i = 0; i < _equalizer.ref.size; i++) {
    equalizer.bandAmps[_equalizer.ref.bands[i]] = _equalizer.ref.amps[i];
  }
  return equalizer;
}