API

Interface IAudioAnalyzerOptions

Options for the AudioAnalyzer

interface IAudioAnalyzerOptions {
    analyzerEnabled: boolean;
    analyzerFFTSize: AudioAnalyzerFFTSizeType;
    analyzerMaxDecibels: number;
    analyzerMinDecibels: number;
    analyzerSmoothing: number;
}
Index
analyzerEnabled: boolean

Enable the audio analyzer. Defaults to false.

analyzerFFTSize: AudioAnalyzerFFTSizeType

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

analyzerMaxDecibels: number

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

analyzerMinDecibels: number

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

analyzerSmoothing: number

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