playback: use playsong settings

Use PlaySong modeling within settings too. This largely completes the
PlaySong refactor and fully adds the ability to play songs by
themselves as an option.

Resolves #424.
This commit is contained in:
Alexander Capehart
2023-07-11 11:58:05 -06:00
parent 97816e349a
commit 3908400418
45 changed files with 337 additions and 392 deletions
+34 -29
View File
@@ -27,8 +27,8 @@
<string name="set_key_pre_amp_with" translatable="false">auxio_pre_amp_with</string>
<string name="set_key_pre_amp_without" translatable="false">auxio_pre_amp_without</string>
<string name="set_key_in_list_playback_mode" translatable="false">auxio_library_playback_mode</string>
<string name="set_key_in_parent_playback_mode" translatable="false">auxio_detail_playback_mode</string>
<string name="set_key_play_in_list_with" translatable="false">auxio_play_in_list_with</string>
<string name="set_key_play_in_parent_with" translatable="false">auxio_play_in_parent_with</string>
<string name="set_key_keep_shuffle" translatable="false">KEY_KEEP_SHUFFLE</string>
<string name="set_key_rewind_prev" translatable="false">KEY_PREV_REWIND</string>
<string name="set_key_repeat_pause" translatable="false">KEY_LOOP_PAUSE</string>
@@ -106,34 +106,38 @@
<item>@integer/action_mode_shuffle</item>
</integer-array>
<string-array name="entries_library_song_playback_mode">
<item>@string/set_playback_mode_songs</item>
<item>@string/set_playback_mode_artist</item>
<item>@string/set_playback_mode_album</item>
<item>@string/set_playback_mode_genre</item>
<string-array name="entries_play_in_list_with">
<item>@string/set_play_song_from_all</item>
<item>@string/set_play_song_from_artist</item>
<item>@string/set_play_song_from_album</item>
<item>@string/set_play_song_from_genre</item>
<item>@string/set_play_song_by_itself</item>
</string-array>
<integer-array name="values_library_song_playback_mode">
<item>@integer/music_mode_songs</item>
<item>@integer/music_mode_artist</item>
<item>@integer/music_mode_album</item>
<item>@integer/music_mode_genre</item>
<integer-array name="values_play_in_list_with">
<item>@integer/play_song_from_all</item>
<item>@integer/play_song_from_album</item>
<item>@integer/play_song_from_artist</item>
<item>@integer/play_song_from_genre</item>
<item>@integer/play_song_itself</item>
</integer-array>
<string-array name="entries_detail_song_playback_mode">
<item>@string/set_playback_mode_none</item>
<item>@string/set_playback_mode_songs</item>
<item>@string/set_playback_mode_artist</item>
<item>@string/set_playback_mode_album</item>
<item>@string/set_playback_mode_genre</item>
<string-array name="entries_play_in_parent_with">
<item>@string/set_play_song_none</item>
<item>@string/set_play_song_from_all</item>
<item>@string/set_play_song_from_artist</item>
<item>@string/set_play_song_from_album</item>
<item>@string/set_play_song_from_genre</item>
<item>@string/set_play_song_by_itself</item>
</string-array>
<integer-array name="values_detail_song_playback_mode">
<item>@integer/music_mode_none</item>
<item>@integer/music_mode_songs</item>
<item>@integer/music_mode_artist</item>
<item>@integer/music_mode_album</item>
<item>@integer/music_mode_genre</item>
<integer-array name="values_play_in_parent_with">
<item>@integer/play_song_none</item>
<item>@integer/play_song_from_all</item>
<item>@integer/play_song_from_album</item>
<item>@integer/play_song_from_artist</item>
<item>@integer/play_song_from_genre</item>
<item>@integer/play_song_itself</item>
</integer-array>
<string-array name="entries_replay_gain">
@@ -152,11 +156,12 @@
<integer name="theme_light">1</integer>
<integer name="theme_dark">2</integer>
<integer name="music_mode_none">-2147483648</integer>
<integer name="music_mode_genre">0xA108</integer>
<integer name="music_mode_artist">0xA109</integer>
<integer name="music_mode_album">0xA10A</integer>
<integer name="music_mode_songs">0xA10B</integer>
<integer name="play_song_none">-2147483648</integer>
<integer name="play_song_itself">0xA11F</integer>
<integer name="play_song_from_all">0xA120</integer>
<integer name="play_song_from_album">0xA121</integer>
<integer name="play_song_from_artist">0xA122</integer>
<integer name="play_song_from_genre">0xA123</integer>
<integer name="replay_gain_track">0xA111</integer>
<integer name="replay_gain_album">0xA112</integer>