AudioBarVisualizer

fun AudioBarVisualizer(audioTrackRef: TrackReference?, modifier: Modifier = Modifier, barCount: Int = 15, loPass: Int = 50, hiPass: Int = 150, style: DrawStyle = Fill, brush: Brush = SolidColor(Color.Black), barWidth: Dp = 8.dp, minHeight: Float = 0.2f, maxHeight: Float = 1.0f, alphas: FloatArray? = null, animationSpec: AnimationSpec<Float> = defaultBarVisualizerAnimationSpec)

An audio bar visualizer for an audio TrackReference.

Parameters

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.

alphas

Alphas of the bars, between 0.0f and 1.0f. Defaults to 1.0f if null or not enough values are passed.