Try hooking up talking state to mute state
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 34s
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 34s
This commit is contained in:
+6
-4
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user