Added ability to set Playback speed and pitch
This commit is contained in:
parent
3a6645ab35
commit
943de60f23
12 changed files with 229 additions and 18 deletions
|
@ -674,6 +674,16 @@ object PreferenceUtil {
|
|||
} else {
|
||||
LyricsType.OVER_LYRICS
|
||||
}
|
||||
|
||||
var playbackSpeed
|
||||
get() = sharedPreferences
|
||||
.getFloat(PLAYBACK_SPEED, 1F)
|
||||
set(value) = sharedPreferences.edit { putFloat(PLAYBACK_SPEED, value) }
|
||||
|
||||
var playbackPitch
|
||||
get() = sharedPreferences
|
||||
.getFloat(PLAYBACK_PITCH, 1F)
|
||||
set(value) = sharedPreferences.edit { putFloat(PLAYBACK_PITCH, value) }
|
||||
}
|
||||
enum class LyricsType {
|
||||
REPLACE_LYRICS, OVER_LYRICS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue