TrebleSettings constructor

const TrebleSettings({
  1. bool enabled = false,
  2. TrebleTransformType a = TrebleTransformType.di,
  3. int b = 0,
  4. int blocksize = 0,
  5. String c = 'all',
  6. String channels = 'all',
  7. double f = 3000.0,
  8. double frequency = 3000.0,
  9. double g = 0.0,
  10. double gain = 0.0,
  11. double m = 1.0,
  12. double mix = 1.0,
  13. bool n = false,
  14. bool normalize = false,
  15. int p = 2,
  16. int poles = 2,
  17. TreblePrecision precision = TreblePrecision.auto,
  18. TreblePrecision r = TreblePrecision.auto,
  19. TrebleWidthType t = TrebleWidthType.q,
  20. TrebleTransformType transform = TrebleTransformType.di,
  21. double w = 0.5,
  22. double width = 0.5,
  23. TrebleWidthType width_type = TrebleWidthType.q,
})

Creates an TrebleSettings with the given parameter values.

Each parameter defaults to its ffmpeg default; the effect stays inactive until enabled is set to true.

Implementation

const TrebleSettings({
  this.enabled = false,
  this.a = TrebleTransformType.di,
  this.b = 0,
  this.blocksize = 0,
  this.c = 'all',
  this.channels = 'all',
  this.f = 3000.0,
  this.frequency = 3000.0,
  this.g = 0.0,
  this.gain = 0.0,
  this.m = 1.0,
  this.mix = 1.0,
  this.n = false,
  this.normalize = false,
  this.p = 2,
  this.poles = 2,
  this.precision = TreblePrecision.auto,
  this.r = TreblePrecision.auto,
  this.t = TrebleWidthType.q,
  this.transform = TrebleTransformType.di,
  this.w = 0.5,
  this.width = 0.5,
  this.width_type = TrebleWidthType.q,
});