32 lines
742 B
C#
Raw Normal View History

2024-06-07 00:47:07 +02:00
using NAudio.CoreAudioApi.Interfaces;
using NAudio.Wasapi.CoreAudioApi.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
namespace NAudio.CoreAudioApi
{
public class AudioMute
{
private IAudioMute audioMuteInterface;
internal AudioMute(IAudioMute audioMute)
{
audioMuteInterface = audioMute;
}
public bool IsMuted
{
get
{
audioMuteInterface.GetMute(out var result);
return result;
}
set
{
var guid = Guid.Empty;
audioMuteInterface.SetMute(value, guid);
}
}
}
}