StaticWaveformSlider
fun StaticWaveformSlider(modifier: Modifier = Modifier, style: WaveformSliderStyle = WaveformSliderStyle.defaultStyle(), waveformData: List<Float>, visibleBarLimit: Int = 100, adjustBarWidthToLimit: Boolean = false, progress: Float, isThumbVisible: Boolean = true, onDragStart: (Float) -> Unit = {}, onDrag: (Float) -> Unit = {}, onDragStop: (Float) -> Unit = {})
A slider that displays a waveform.
Parameters
modifier
Modifier for styling.
waveformData
The waveform data to display.
style
The style for the waveform slider.
visibleBarLimit
The number of bars to display at once.
adjustBarWidthToLimit
Whether to adjust the bar width to fit the visible bar limit.
progress
The current progress of the waveform.
isThumbVisible
Whether to display the thumb.
onDragStart
Callback when the user starts dragging the thumb.
onDrag
Callback when the user drags the thumb.
onDragStop
Callback when the user stops dragging the thumb.