Skip to content

Commit

Permalink
audio level
Browse files Browse the repository at this point in the history
  • Loading branch information
dsokolov committed Feb 2, 2017
1 parent d8408ed commit 363ed47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rxaa/src/main/kotlin/me/ilich/rxandroidaudio/AudioLevel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AudioLevel {
map { sh ->
sh.toDouble() / Short.MAX_VALUE
}.
filter { it == 0.0 }.
filter { it != 0.0 }.
map { Math.abs(it) }.
map { 20.0 * Math.log10(it) }.
filter(Double::isFinite).
Expand Down

0 comments on commit 363ed47

Please sign in to comment.