INNER CODE UNIT · Kotlin
MAX_DB_VALUE
Ayush0Chaudhary/blurr · app/src/main/java/com/blurr/voice/AudioWaveView.kt:23
private const val MAX_DB_VALUE = -5f
}
private val waveCount = 7
private val minIdleAmplitude = 0.15f
private val maxWaveHeightScale = 0.25f
// Corrected and swapped durations for more logical behavior
private val targetAmplitudeTransitionDuration = 500L
private val realtimeAmplitudeTransitionDuration = 100L
private val maxSpeedIncrease = 4.0f
private val jitterAmount = 0.1f
private val waveColors = intArrayOf(
"#8A2BE2".toColorInt(), "#4169E1".toColorInt(), "#FF1493".toColorInt(),
"#9370DB".toColorInt(), "#00BFFF".toColorInt(), "#FF69B4".toColorInt(),
"#DA70D6".toColorInt()
)