mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Add volume to the view model for access
This commit is contained in:
@@ -4,6 +4,13 @@ namespace RedBookPlayer.GUI
|
||||
{
|
||||
public class PlayerViewModel : ReactiveObject
|
||||
{
|
||||
private int _volume;
|
||||
public int Volume
|
||||
{
|
||||
get => _volume;
|
||||
set => this.RaiseAndSetIfChanged(ref _volume, value);
|
||||
}
|
||||
|
||||
private bool _applyDeEmphasis;
|
||||
public bool ApplyDeEmphasis
|
||||
{
|
||||
|
||||
@@ -274,8 +274,9 @@ namespace RedBookPlayer.Hardware
|
||||
if(!Initialized || dataContext == null)
|
||||
return;
|
||||
|
||||
dataContext.HiddenTrack = _opticalDisc.TimeOffset > 150;
|
||||
dataContext.Volume = App.Settings.Volume;
|
||||
dataContext.ApplyDeEmphasis = _soundOutput.ApplyDeEmphasis;
|
||||
dataContext.HiddenTrack = _opticalDisc.TimeOffset > 150;
|
||||
|
||||
if(_opticalDisc is CompactDisc compactDisc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user