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:
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="enable_theme_settings">true</bool>
|
||||
<bool name="enable_audio_focus_setting">true</bool>
|
||||
<integer name="recycler_spans">1</integer>
|
||||
</resources>
|
||||
|
||||
@@ -80,8 +80,6 @@
|
||||
<string name="set_alt_shuffle">Prefer shuffle action</string>
|
||||
|
||||
<string name="set_audio">Audio</string>
|
||||
<string name="set_focus">Audio focus</string>
|
||||
<string name="set_focus_desc">Pause when other audio plays (ex. Calls)</string>
|
||||
<string name="set_headset_autoplay">Headset autoplay</string>
|
||||
<string name="set_headset_autoplay_desc">Always start playing when a headset is connected (may not work on all devices)</string>
|
||||
<string name="set_replay_gain">ReplayGain (Experimental)</string>
|
||||
|
||||
Reference in New Issue
Block a user