AudioVisualizer class Audio

Handles the setup and data retrieval for audio visualization using the Web Audio API.

Constructors

AudioVisualizer([int fftSize = 2048])
Creates an AudioVisualizer instance with an optional fftSize.

Properties

fftSize int
Gets the current Fast Fourier Transform (FFT) size.
getter/setter pair
frequencyBinCount int
Gets the number of frequency bins available.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disconnect() → void
Disconnects the audio nodes from the audio graph and resets them to null.
init(HTMLAudioElement audioElement, AudioContext audioContext) → void
Initializes the audio visualizer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateWavefromData() Uint8List
Updates and returns the current waveform (time-domain) data.

Operators

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