Add if else statement for audio downmixing support

(cherry picked from commit d5c5bcc41c)
This commit is contained in:
MichaelR416
2024-02-10 04:13:50 -05:00
committed by Niels van Velzen
parent d661c2faf3
commit 65a7bbf501

View File

@@ -205,7 +205,8 @@ class ExoPlayerProfile(
})
}
// Audio channel profile
add(maxAudioChannelsCodecProfile(channels = 8))
if (!Utils.downMixAudio(context)) add(maxAudioChannelsCodecProfile(channels = 8))
else add(maxAudioChannelsCodecProfile(channels = 2))
}.toTypedArray()
subtitleProfiles = arrayOf(