Fix volume setting; move view model to common

This commit is contained in:
Matt Nadareski
2021-07-05 16:20:34 -07:00
parent 4efc58d0ef
commit 49d8d8c23a
6 changed files with 28 additions and 8 deletions

View File

@@ -389,6 +389,12 @@ namespace RedBookPlayer.Common.Hardware
/// <param name="load">True to enable loading data tracks, false otherwise</param>
public void SetLoadDataTracks(bool load) => (_opticalDisc as CompactDisc)?.SetLoadDataTracks(load);
/// <summary>
/// Set the value for the volume
/// </summary>
/// <param name="volume">New volume value</param>
public void SetVolume(int volume) => _soundOutput?.SetVolume(volume);
/// <summary>
/// Update the player from the current OpticalDisc
/// </summary>