Arlodotexe / strix-music

Combine any music sources into a single library. It's your music. Play it your way.
http://www.strixmusic.com
139 stars 4 forks source link

Move GetMediaSourceAsync to ICoreTrack #207

Open Arlodotexe opened 2 years ago

Arlodotexe commented 2 years ago

Background

GetMediaSourceConfig is currently sitting on ICore. You can easily access this method from pretty much anywhere. If you have an ICoreTrack, simply access track.SourceCore.GetMediaSourceAsync(track).

Problem

There's no explicit problem with this (yet), but there are a few advantages to changing it.

Solution

Move GetMediaSourceAsync to ICoreTrack and ITrack directly. This has a few immediate knock-on effects:

Arlodotexe commented 1 year ago

This has been removed from the 0.1.0 milestone to allow us to polish and ship the update faster