/// <summary> /// Unmutes Spotify (Requires Windows 7 or newer) /// </summary> public void UnMute() { if (!IsOSCompatible(WindowsSevenMajorVersion, WindowsSevenMinorVersion)) { throw new NotSupportedException("This feature is only available on Windows 7 or newer"); } VolumeMixerControl.MuteSpotify(false); }
/// <summary> /// Unmutes Spotify (Requires Windows 7 or newer) /// </summary> public void UnMute() { //Windows < Windows Vista Check if (Environment.OSVersion.Version.Major < 6) { throw new NotSupportedException("This feature is only available on Windows 7 or newer"); } //Windows Vista Check if (Environment.OSVersion.Version.Major == 6) { if (Environment.OSVersion.Version.Minor == 0) { throw new NotSupportedException("This feature is only available on Windows 7 or newer"); } } VolumeMixerControl.MuteSpotify(false); }