Coerce loudnessDb in -10f,+10f
This commit is contained in:
parent
c8d03a9c9d
commit
7ed138ea51
1 changed files with 2 additions and 1 deletions
|
@ -406,7 +406,8 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
|
|||
.distinctUntilChanged()
|
||||
.filterNotNull()
|
||||
.flowOn(Dispatchers.IO)
|
||||
.collect { x ->
|
||||
.collect { loudnessDb ->
|
||||
val x = loudnessDb.coerceIn(-10f, 10f)
|
||||
val x2 = x * x
|
||||
val x3 = x2 * x
|
||||
val x4 = x2 * x2
|
||||
|
|
Loading…
Reference in a new issue