AudioVisualizer

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

bandCount

the number of frequency bands to separate the frequencies into.

loPass

the start index of the FFT samples to use (inclusive). 0 <= loPass <hiPass.

hiPass

the end index of the FFT samples to use (exclusive). loPass< hiPass <= FFTAudioAnalyzer.SAMPLE_SIZE.

See also