mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-20 23:41:32 +01:00
This commit is contained in:
1 parent
28e50dd461
commit
f8a6b6a936
1 file changed
+2
-2
@@ -111,9 +111,9 @@ class SleepTimerManager constructor(val playerNotificationService: PlayerNotific
|
||||
playerNotificationService.clientEventEmitter?.onSleepTimerEnded(getCurrentTime())
|
||||
clearSleepTimer()
|
||||
sleepTimerFinishedAt = System.currentTimeMillis()
|
||||
} else if (sleepTimeSecondsRemaining <= 30) {
|
||||
} else if (sleepTimeSecondsRemaining <= 60) {
|
||||
// Start fading out audio
|
||||
val volume = sleepTimeSecondsRemaining / 30F
|
||||
val volume = sleepTimeSecondsRemaining / 60F
|
||||
Log.d(tag, "SLEEP VOLUME FADE $volume | ${sleepTimeSecondsRemaining}s remaining")
|
||||
setVolume(volume)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user