-
public final class AudioBarVisualizerKt
-
-
Method Summary
Modifier and Type Method Description final static UnitAudioVisualizer(TrackReference audioTrackRef, Integer bandCount, Integer loPass, Integer hiPass, Function1<FloatArray, Unit> content)An audio visualizer for an audio TrackReference. final static UnitAudioBarVisualizer(TrackReference audioTrackRef, Modifier modifier, Integer barCount, Integer loPass, Integer hiPass, DrawStyle style, Brush brush, Dp barWidth, Float minHeight, Float maxHeight, FloatArray alphas, AnimationSpec<Float> animationSpec)An audio bar visualizer for an audio TrackReference. -
-
Method Detail
-
AudioVisualizer
@Composable() final static Unit AudioVisualizer(TrackReference audioTrackRef, Integer bandCount, Integer loPass, Integer hiPass, Function1<FloatArray, Unit> content)
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).hiPass- the end index of the FFT samples to use (exclusive).
-
AudioBarVisualizer
@Composable() final static Unit AudioBarVisualizer(TrackReference audioTrackRef, Modifier modifier, Integer barCount, Integer loPass, Integer hiPass, DrawStyle style, Brush brush, Dp barWidth, Float minHeight, Float maxHeight, FloatArray alphas, AnimationSpec<Float> animationSpec)
An audio bar visualizer for an audio TrackReference.
- Parameters:
loPass- the start index of the FFT samples to use (inclusive).hiPass- the end index of the FFT samples to use (exclusive).alphas- Alphas of the bars, between 0.0f and 1.0f.
-
-
-
-