Audio Visualizer
fun AudioVisualizer(audioTrackRef: TrackReference?, bandCount: Int = 15, loPass: Int = 50, hiPass: Int = 150, content: @Composable (amplitudes: FloatArray) -> Unit)
An audio visualizer for an audio TrackReference. The audio is broken down into amplitudes for each of the frequency bands and passed as an argument into content.
Parameters
band Count
the number of frequency bands to separate the frequencies into.
lo Pass
the start index of the FFT samples to use (inclusive). 0 <= loPass <hiPass.
hi Pass
the end index of the FFT samples to use (exclusive). loPass< hiPass <= FFTAudioAnalyzer.SAMPLE_SIZE.