From 824893cbfcef4dfebc2d1013a8360629c8581f4c Mon Sep 17 00:00:00 2001 From: Xilin Jia <6257601+XilinJia@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:28:07 +0100 Subject: [PATCH] fixed bug related to audio offload mode --- .../ac/mdiq/podcini/core/service/playback/ExoPlayerWrapper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/ac/mdiq/podcini/core/service/playback/ExoPlayerWrapper.kt b/core/src/main/java/ac/mdiq/podcini/core/service/playback/ExoPlayerWrapper.kt index 7b245c5e..743e6322 100644 --- a/core/src/main/java/ac/mdiq/podcini/core/service/playback/ExoPlayerWrapper.kt +++ b/core/src/main/java/ac/mdiq/podcini/core/service/playback/ExoPlayerWrapper.kt @@ -76,6 +76,7 @@ class ExoPlayerWrapper internal constructor(private val context: Context) { val audioOffloadPreferences = AudioOffloadPreferences.Builder() .setAudioOffloadMode(AudioOffloadPreferences.AUDIO_OFFLOAD_MODE_ENABLED) // Add additional options as needed .setIsGaplessSupportRequired(true) + .setIsSpeedChangeSupportRequired(true) .build() exoPlayer = ExoPlayer.Builder(context, DefaultRenderersFactory(context)) .setTrackSelector(trackSelector)