mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Add new logic to settings; fix Player
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user