AnalyserOptions constructor

AnalyserOptions({
  1. int? fftSize,
  2. double? maxDecibels,
  3. double? minDecibels,
  4. double? smoothingTimeConstant,
})

Implementation

factory AnalyserOptions(
        {int? fftSize,
        double? maxDecibels,
        double? minDecibels,
        double? smoothingTimeConstant}) =>
    AnalyserOptions._(
        fftSize: fftSize ?? 2048,
        maxDecibels: maxDecibels ?? -30,
        minDecibels: minDecibels ?? -100,
        smoothingTimeConstant: smoothingTimeConstant ?? 0.8);