music: introduce backend system

Move out the MediaStoreCompat interface into a full interface called
Backend.

In preparation for direct metadata parsing, it would be useful to
create some kind of object system to properly handle the capabilities
of each metadata indexing mode. Backend fulfills that by allowing
each object to implement their own query and then loading routine.

This system is designed somewhat strangely. This is firstly because
the ExoPlayer metadata backend will have to plug in to the original
MediaStore backend, so making methods more granular allows the
ExoPlayer backend to avoid some of the stupid inefficiencies from
the actual MediaStore backend, such as the genre loading process.
We also want to separate the steps of loading music in order to
more adequately show the current loading process to the user in
a future change.
This commit is contained in:
OxygenCobalt
2022-05-28 13:13:19 -06:00
parent c6d7d8fe39
commit 2576fb26ba
19 changed files with 589 additions and 552 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- Info namespace | App labels -->
<string name="info_app_desc">Un reproductor de música simple y racional para Android.</string>
<string name="info_channel_name">Reproducción musical</string>
<string name="info_playback_channel_name">Reproducción musical</string>
<string name="info_widget_desc">Ver y controlar la reproducción musical</string>
<!-- Label Namespace | Static Labels -->