API

Class AbstractAudioAnalyzerAbstract

An AudioAnalyzer converts time-domain audio data into the frequency-domain.

Index

The size of the FFT (fast fourier transform) to use when converting time-domain data to frequency-domain data. Default is 2048.

isEnabled: boolean

Whether the analyzer is enabled or not.

  • The data retrieval functions return an empty array if the analyzer is not enabled.
maxDecibels: number

The maximum decibel value for the range of the analyzer. Default is -30.

minDecibels: number

The minimum decibel value for the range of the analyzer. Default is -100.

smoothing: number

A number between 0 and 1 that determines how quickly the analyzer's value changes. Default is 0.8.