Created
May 28, 2018 10:13
-
-
Save kheldiente/d81c645b5695030337ccfb045d52e2a5 to your computer and use it in GitHub Desktop.
On band level changed on equalizer view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onBandLevelChanged(bandId: Int, value: Int, fromUser: Boolean) { | |
val lowestBandLevel = equalizer?.bandLevelRange?.get(0) | |
val bandLevel = (value.plus(lowestBandLevel!!)).toShort() | |
// Manipulate equalizer band level | |
setBandLevel(bandId.toShort(), bandLevel) | |
... Cached current value of band | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment