From cdbcbf09e755d3cd4d11d3f2464a35ee3d3bafad Mon Sep 17 00:00:00 2001 From: PanteraPolnocy Date: Sun, 17 Dec 2023 15:25:52 +0100 Subject: [PATCH] FIRE-33532 Cover the remaining cases for mic toggle: hotkey / mouse, activation/deactivation without PTT checkbox selected --- indra/newview/llviewerinput.cpp | 2 ++ indra/newview/llvoiceclient.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/indra/newview/llviewerinput.cpp b/indra/newview/llviewerinput.cpp index 9e30b4a06b..fc892bc9f2 100644 --- a/indra/newview/llviewerinput.cpp +++ b/indra/newview/llviewerinput.cpp @@ -939,11 +939,13 @@ bool voice_follow_key(EKeystate s) { if (!LLAgent::isActionAllowed("speak")) return false; LLVoiceClient::getInstance()->setUserPTTState(true); + make_ui_sound("UISndMicToggle"); // FIRE-33249 Mic toggle return true; } else if (KEYSTATE_UP == s && LLVoiceClient::getInstance()->getUserPTTState()) { LLVoiceClient::getInstance()->setUserPTTState(false); + make_ui_sound("UISndMicToggle"); // FIRE-33249 Mic toggle return true; } return false; diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp index 95579b5deb..9d98ae9af5 100644 --- a/indra/newview/llvoiceclient.cpp +++ b/indra/newview/llvoiceclient.cpp @@ -677,6 +677,7 @@ void LLVoiceClient::inputUserControlState(bool down) else // set open-mic state as an absolute { setUserPTTState(down); + make_ui_sound("UISndMicToggle"); // FIRE-33249 Mic toggle } }