-
Notifications
You must be signed in to change notification settings - Fork 634
Description
My app support gapless and everything works fine.
But my app also support Replay Gain that it applies from extracted metadata. The gain is applied from onTracksChanged
and this works nicely for the first song (And also when applying for albums since the replay gain is constant).
The problem arise when users want to play random songs with random replay gain values. In that case due to pre buffering for gapless, onTracksChanged
is called too late and the replay gain is applied late (For medium quality mp3 up to 2 seconds). This obviously is not nice.
Since they play random tracks there's no need for gapless, and they prefer a small delay for the next song than a wrong volume for a few seconds.
The question is how can I achieve that (disable gapless, so that I can apply the replaygain at the proper moment) in normal usage of exoplayer and media sources and everything.
I'd like to avoid rewrite a complete different path to not use ExoPlayer playlists and handle everything manually.