playback: migrate replaygain to audioprocessor

Create an AudioProcessor implementation for ReplayGain.

Now that ExoPlayer handles AudioFocus, the ReplayGain implementation
would conflict with the changes that ducking would make to the volume.
To fix this, migrate the ReplayGain implementation to a dedicated
audio processor. This not only resolves this system, but also opens the
door for positive ReplayGain values in the future. Currently however,
our method for modifying the bitstream results in popping with values
above the reference volume, so some more work must be done in that
regard.
This commit is contained in:
OxygenCobalt
2022-03-27 20:33:01 -06:00
parent b748d73abb
commit b4abad26cd
4 changed files with 345 additions and 209 deletions
+1
View File
@@ -14,6 +14,7 @@
- Migrated constants to centralized table
- Introduced new RecyclerView framework
- Use native ExoPlayer AudioFocus implementation
- Make ReplayGain functionality use AudioProcessor instead of volume
- Removed databinding [Greatly reduces compile times]
- A bunch of internal view implementation improvements