Try hooking up talking state to mute state
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 34s

This commit is contained in:
2026-08-18 15:36:01 -04:00
parent 5aeefebc47
commit d28f421ea3
3 changed files with 31 additions and 19 deletions
+6 -4
View File
@@ -30,7 +30,7 @@ namespace WorkIndicator
Properties.Settings.Default.PropertyChanged += HandleSettingChange;
AudioWatcher.MicrophoneInUseChanged += AudioWatcher_MicrophoneInUseChanged;
AudioWatcher.MicrophoneStatusChanged += AudioWatcher_MicrophoneStatusChanged;
AudioWatcher.Start();
_initialized = true;
@@ -50,7 +50,7 @@ namespace WorkIndicator
UpdateLights();
}
private static void AudioWatcher_MicrophoneInUseChanged(bool microphoneInUse)
private static void AudioWatcher_MicrophoneStatusChanged(MicrophoneStatus microphoneStatus)
{
UpdateLights();
}
@@ -90,9 +90,11 @@ namespace WorkIndicator
if (status == Status.Auto)
{
if (AudioWatcher.MicrophoneInUse())
var microphoneStatus = AudioWatcher.GetMicrophoneStatus();
if (microphoneStatus != MicrophoneStatus.NotUsed)
{
status = Status.OnPhone;
status = microphoneStatus == MicrophoneStatus.UsedMuted ? Status.OnPhone : Status.Talking;
}
else
{