Moved playlist commands to view model.
This commit is contained in:
@@ -95,11 +95,11 @@ public class BassAudioEngine : IAudioEngine, IDisposable
|
||||
_mediaPlayer.PropertyChanged += OnMediaPlayerPropertyChanged;
|
||||
|
||||
List<string> supportedFormats = [.. Bass.SupportedFormats.Split(';')];
|
||||
supportedFormats.Add(".aac");
|
||||
supportedFormats.Add(".m4a");
|
||||
supportedFormats.Add(".flac");
|
||||
supportedFormats.Add(".opus");
|
||||
supportedFormats.Add(".wma");
|
||||
//supportedFormats.Add(".aac");
|
||||
//supportedFormats.Add(".m4a");
|
||||
supportedFormats.Add("*.flac");
|
||||
//supportedFormats.Add(".opus");
|
||||
//supportedFormats.Add(".wma");
|
||||
|
||||
SupportedFormats = [.. supportedFormats];
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ManagedBass" Version="3.1.1" />
|
||||
<PackageReference Include="ManagedBass.Flac" Version="3.1.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.2" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.2" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.2" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.2" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.3" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
<PackageReference Include="TagLibSharp" Version="2.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -4,6 +4,6 @@ namespace Harmonia.Core.Playlists;
|
||||
|
||||
public class PlaylistSong(Song song)
|
||||
{
|
||||
public string UID { get; } = Guid.NewGuid().ToString();
|
||||
public string UID { get; init; } = Guid.NewGuid().ToString();
|
||||
public Song Song { get; init; } = song;
|
||||
}
|
||||
Reference in New Issue
Block a user