Package-level declarations

Functions

Link copied to clipboard
fun RunningWaveForm(restartKey: Any, newValueKey: Int, latestValue: Int?, modifier: Modifier = Modifier, maxInputValue: Int = 20, barMinHeight: Float = 0.1f, barWidth: Dp = 8.dp, barGap: Dp = 2.dp, barCornerRadius: CornerRadius = CornerRadius(barWidth.value / 2.5f, barWidth.value / 2.5f), barBrush: Brush = Brush.linearGradient( Pair(0f, ChatTheme.colors.primaryAccent), Pair(1f, ChatTheme.colors.primaryAccent), ))

A stateful composable that creates a "waveform" visualizer used to display mic input during recording. You should poll the amplitude of the audio input and update the composable's latestValue input when each new value is emitted. Null values are ignored.