diff --git a/Lib.Audio/Controllable.cs b/Lib.Audio/Controllable.cs index 6bc4c37..3c48d22 100644 --- a/Lib.Audio/Controllable.cs +++ b/Lib.Audio/Controllable.cs @@ -3,7 +3,6 @@ // Copyright(c) 2021 SimonG. All Rights Reserved. using System.Collections.Generic; -using System.Linq; using Lib.Audio.Interfaces; using NAudio.CoreAudioApi; @@ -32,7 +31,6 @@ namespace Lib.Audio public bool IsValid { get; set; } = true; public string ExecutablePath { get; } public string Name { get; } - public string? IconPath => _audioSessionControls.FirstOrDefault(c => !string.IsNullOrEmpty(c.IconPath))?.IconPath; //FixMe public void SetVolume(float volume) => _audioSessionControls.ForEach(c => c.SimpleAudioVolume.Volume = volume); public float GetVolume() => _audioSessionControls[0].SimpleAudioVolume.Volume; //TODO: Can we always take 0? diff --git a/Lib.Audio/Interfaces/IControllable.cs b/Lib.Audio/Interfaces/IControllable.cs index 93fd0f8..267eeef 100644 --- a/Lib.Audio/Interfaces/IControllable.cs +++ b/Lib.Audio/Interfaces/IControllable.cs @@ -10,7 +10,6 @@ namespace Lib.Audio.Interfaces string ExecutablePath { get; } string Name { get; } - string? IconPath { get; } void SetVolume(float volume); float GetVolume(); diff --git a/Lib.Audio/MasterControllable.cs b/Lib.Audio/MasterControllable.cs index e13981b..94e09f6 100644 --- a/Lib.Audio/MasterControllable.cs +++ b/Lib.Audio/MasterControllable.cs @@ -22,7 +22,6 @@ namespace Lib.Audio public bool IsValid { get; set; } public string ExecutablePath { get; } = ""; public string Name { get; } - public string? IconPath => null; public void SetVolume(float volume) {