Added tracking/capturing/restoration of audio playback state and position.

This commit is contained in:
2026-08-08 16:37:55 -04:00
parent c262ee4caa
commit 0942e3e5ad
11 changed files with 92 additions and 15 deletions

View File

@@ -1,11 +1,13 @@
namespace Harmonia.WinUI.Session;
using Harmonia.Core.Engine;
namespace Harmonia.WinUI.Session;
public partial class AudioPlayerState
{
public string? PlaylistUID { get; set; }
public string? PlaylistSongUID { get; set; }
public double Position { get; set; } = 0.0;
public string? PlaybackState { get; set; }
public AudioPlaybackState PlaybackState { get; set; } = AudioPlaybackState.Stopped;
public double Volume { get; set; } = 1.0;
public bool IsMuted { get; set; }
public string? RepeatState { get; set; }