Disable skip silence for now

Enable when https://github.com/androidx/media/issues/712 is resolved. See https://github.com/SimpleMobileTools/Simple-Music-Player/issues/604
This commit is contained in:
Naveen 2023-10-17 09:13:52 +05:30
parent d541b055a1
commit 7371d8b79b
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -64,7 +64,11 @@ private fun PlaybackService.initializePlayer(handleAudioFocus: Boolean, handleAu
.build(), .build(),
handleAudioFocus handleAudioFocus
) )
.setSkipSilenceEnabled(skipSilence) .setSkipSilenceEnabled(
// TODO: Enable when https://github.com/androidx/media/issues/712 is resolved.
// See https://github.com/SimpleMobileTools/Simple-Music-Player/issues/604
false //skipSilence
)
.setSeekBackIncrementMs(SEEK_INTERVAL_MS) .setSeekBackIncrementMs(SEEK_INTERVAL_MS)
.setSeekForwardIncrementMs(SEEK_INTERVAL_MS) .setSeekForwardIncrementMs(SEEK_INTERVAL_MS)
.setLooper(playerThread.looper) .setLooper(playerThread.looper)