AudioVisualizer constructor
- int fftSize = 2048
Creates an AudioVisualizer instance with an optional fftSize
.
fftSize
: The desired Fast Fourier Transform size for the analyser. This value must be a power of 2 between 32 and 32768 (inclusive). If an invalid value is provided, it will be adjusted to the nearest valid value. Defaults to 2048.
Implementation
AudioVisualizer([int fftSize = 2048]) : _fftSize = fftSize, _waveformData = Uint8List(fftSize);