From 9ffbca2489d5a556228717c09f86c2d28b6c8d73 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Tue, 10 Sep 2024 19:15:58 +0300 Subject: Allow the in world voice indicator to be toggled in preferences --- indra/newview/app_settings/settings.xml | 11 +++ indra/newview/llvoicevisualizer.cpp | 3 +- .../default/xui/en/panel_preferences_sound.xml | 82 ++++++++++++---------- 3 files changed, 59 insertions(+), 37 deletions(-) (limited to 'indra') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 9380b0d6f7..82eb98b06b 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13422,6 +13422,17 @@ Value 4 + VoiceVisualizerEnabled + + Comment + Display voice dot indicator above an avatar + Persist + 1 + Type + Boolean + Value + 0 + WarningsAsChat Comment diff --git a/indra/newview/llvoicevisualizer.cpp b/indra/newview/llvoicevisualizer.cpp index 9412136272..7691ac54f3 100644 --- a/indra/newview/llvoicevisualizer.cpp +++ b/indra/newview/llvoicevisualizer.cpp @@ -337,7 +337,8 @@ void LLVoiceVisualizer::lipSyncOohAah( F32& ooh, F32& aah ) //--------------------------------------------------- void LLVoiceVisualizer::render() { - if ( ! mVoiceEnabled ) + static LLCachedControl show_visualizer(gSavedSettings, "VoiceVisualizerEnabled", false); + if (!mVoiceEnabled || !show_visualizer) { return; } diff --git a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml index eb38f8bff3..d909a56733 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml @@ -406,6 +406,44 @@ name="autoplay_ask" value="2"/> + + Noise Suppression + + + + + + + + - - Noise Suppression - - - - - - - - + top_pad="-15" + width="200"/>