playback: rework audio focus

Rework audio focus to rely on the native ExoPlayer implementation
instead of a custom implementation.

Previously, we avoided ExoPlayer's AudioFocus system as it never
played after a transient lost. A few versions later now through,
now it does, so we may as well switch to it. This does introduce
a bug where ReplayGain functionality will conflict with audio
focus, but I hope to eliminate this with #115 as I switch to
an AudioProcessor instead of a callback.
This commit is contained in:
OxygenCobalt
2022-03-27 11:51:58 -06:00
parent e54a58c612
commit b748d73abb
37 changed files with 33 additions and 175 deletions
@@ -80,8 +80,6 @@
<string name="set_alt_shuffle">偏好随机播放操作</string>
<string name="set_audio">音频</string>
<string name="set_focus">音频焦点</string>
<string name="set_focus_desc">有其它音频播放(比如电话)时暂停</string>
<string name="set_headset_autoplay">自动播放</string>
<string name="set_headset_autoplay_desc">连接至耳机时总是自动播放(并非在所有设备上都有用)</string>
<string name="set_replay_gain">回放增益(实验性)</string>