From cfb2d316d7baf5e19e37ba9a9ea4eb018fbc427a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 30 Jun 2021 13:56:42 -0700 Subject: [PATCH] Fix and surface de-emphasis flag --- RedBookPlayer/Hardware/Player.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RedBookPlayer/Hardware/Player.cs b/RedBookPlayer/Hardware/Player.cs index 4e60b65..362e7df 100644 --- a/RedBookPlayer/Hardware/Player.cs +++ b/RedBookPlayer/Hardware/Player.cs @@ -23,6 +23,11 @@ namespace RedBookPlayer.Hardware /// public bool Playing => _soundOutput?.Playing ?? false; + /// + /// Indicates if de-emphasis should be applied + /// + public bool ApplyDeEmphasis => _soundOutput?.ApplyDeEmphasis ?? false; + #endregion #region Private State Variables @@ -258,7 +263,7 @@ namespace RedBookPlayer.Hardware /// Toggle de-emphasis processing /// /// True to apply de-emphasis, false otherwise - public void ToggleDeEmphasis(bool enable) => _soundOutput.ToggleDeEmphasis(enable); + public void ToggleDeEmphasis(bool enable) => _soundOutput?.ToggleDeEmphasis(enable); /// /// Update the data context for the frontend