Add new logic to settings; fix Player

This commit is contained in:
Matt Nadareski
2021-10-04 22:58:16 -07:00
parent 765d2f21c1
commit 0a5c3f49c3
3 changed files with 59 additions and 34 deletions

View File

@@ -364,7 +364,7 @@ namespace RedBookPlayer.GUI.ViewModels
ToggleDeEmphasisCommand = ReactiveCommand.Create(ExecuteToggleDeEmphasis);
// Initialize Player
_player = new Player(App.Settings.Volume);
_player = new Player(App.Settings.NumberOfDiscs, App.Settings.Volume);
PlayerState = PlayerState.NoDisc;
}

View File

@@ -44,6 +44,11 @@ namespace RedBookPlayer.GUI.ViewModels
/// </summary>
public bool AutoPlay { get; set; } = false;
/// <summary>
/// Indicates the number of discs to allow loading and changing
/// </summary>
public int NumberOfDiscs { get; set; } = 1;
/// <summary>
/// Indicates if an index change can trigger a track change
/// </summary>
@@ -144,6 +149,16 @@ namespace RedBookPlayer.GUI.ViewModels
/// </summary>
public Key EjectKey { get; set; } = Key.OemTilde;
/// <summary>
/// Key assigned to move to the next disc
/// </summary>
public Key NextDiscKey { get; set; } = Key.PageUp;
/// <summary>
/// Key assigned to move to the previous disc
/// </summary>
public Key PreviousDiscKey { get; set; } = Key.PageDown;
/// <summary>
/// Key assigned to move to the next track
/// </summary>