Interface IAudioAnalyzerOptions
interface IAudioAnalyzerOptions {
analyzerEnabled: boolean;
analyzerFFTSize: AudioAnalyzerFFTSizeType;
analyzerMaxDecibels: number;
analyzerMinDecibels: number;
analyzerSmoothing: number;
}
analyzerEnabled: boolean;
analyzerFFTSize: AudioAnalyzerFFTSizeType;
analyzerMaxDecibels: number;
analyzerMinDecibels: number;
analyzerSmoothing: number;
}
Properties
analyzer Enabled
analyzerEnabled: boolean
Enable the audio analyzer. Defaults to false.
analyzer FFT Size
The size of the FFT (fast fourier transform) to use when converting time-domain data to frequency-domain data. Default is 2048.
analyzer Max Decibels
analyzerMaxDecibels: number
The maximum decibel value for the range of the analyzer. Default is -30.
analyzer Min Decibels
analyzerMinDecibels: number
The minimum decibel value for the range of the analyzer. Default is -100.
analyzer Smoothing
analyzerSmoothing: number
A number between 0 and 1 that determines how quickly the analyzer's value changes. Default is 0.8.
Options for the AudioAnalyzer