mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Adjust audio levels animation.
This commit is contained in:
@@ -91,9 +91,9 @@ data class CallParticipant constructor(
|
||||
fun fromRawAudioLevel(raw: Int): AudioLevel {
|
||||
return when {
|
||||
raw < 500 -> LOWEST
|
||||
raw < 2000 -> LOW
|
||||
raw < 8000 -> MEDIUM
|
||||
raw < 20000 -> HIGH
|
||||
raw < 1000 -> LOW
|
||||
raw < 5000 -> MEDIUM
|
||||
raw < 16000 -> HIGH
|
||||
else -> HIGHEST
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user