Display audio levels in 1:1 calls.

This commit is contained in:
Rashad Sookram
2022-04-05 13:29:49 -04:00
committed by Cody Henthorne
parent dabd131222
commit 73f32868a2
8 changed files with 34 additions and 10 deletions

View File

@@ -88,9 +88,8 @@ data class CallParticipant constructor(
* display in the UI.
*/
@JvmStatic
fun fromRawAudioLevel(raw: Int?): AudioLevel? {
fun fromRawAudioLevel(raw: Int): AudioLevel {
return when {
raw == null -> null
raw < 500 -> LOWEST
raw < 2000 -> LOW
raw < 8000 -> MEDIUM