From 7371d8b79b11c1fec8139b78f3fb33a5852d2f19 Mon Sep 17 00:00:00 2001 From: Naveen Date: Tue, 17 Oct 2023 09:13:52 +0530 Subject: [PATCH] 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 --- .../simplemobiletools/musicplayer/playback/player/Player.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/musicplayer/playback/player/Player.kt b/app/src/main/kotlin/com/simplemobiletools/musicplayer/playback/player/Player.kt index c3926424e..165c832cc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/musicplayer/playback/player/Player.kt +++ b/app/src/main/kotlin/com/simplemobiletools/musicplayer/playback/player/Player.kt @@ -64,7 +64,11 @@ private fun PlaybackService.initializePlayer(handleAudioFocus: Boolean, handleAu .build(), 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) .setSeekForwardIncrementMs(SEEK_INTERVAL_MS) .setLooper(playerThread.looper)