Allow the in world voice indicator to be toggled in preferences

master
Mnikolenko Productengine 2024-09-10 19:15:58 +03:00
parent 100fab22f5
commit 9ffbca2489
3 changed files with 59 additions and 37 deletions

View File

@ -13422,6 +13422,17 @@
<key>Value</key>
<integer>4</integer>
</map>
<key>VoiceVisualizerEnabled</key>
<map>
<key>Comment</key>
<string>Display voice dot indicator above an avatar</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>WarningsAsChat</key>
<map>
<key>Comment</key>

View File

@ -337,7 +337,8 @@ void LLVoiceVisualizer::lipSyncOohAah( F32& ooh, F32& aah )
//---------------------------------------------------
void LLVoiceVisualizer::render()
{
if ( ! mVoiceEnabled )
static LLCachedControl<bool> show_visualizer(gSavedSettings, "VoiceVisualizerEnabled", false);
if (!mVoiceEnabled || !show_visualizer)
{
return;
}

View File

@ -406,6 +406,44 @@
name="autoplay_ask"
value="2"/>
</combo_box>
<text
layout="topleft"
height="15"
left="260"
top_pad="-18"
width="100"
name="noise_suppression_label">
Noise Suppression
</text>
<combo_box
control_name="VoiceNoiseSuppressionLevel"
layout="topleft"
height="23"
left_pad="10"
top_pad="-20"
name="noise_suppression_combo"
width="80">
<item
label="Off"
name="noise_suppression_none"
value="0"/>
<item
label="Low"
name="noise_suppression_low"
value="1"/>
<item
label="Moderate"
name="noise_suppression_moderate"
value="2"/>
<item
label="High"
name="noise_suppression_high"
value="3"/>
<item
label="Max"
name="noise_suppression_max"
value="4"/>
</combo_box>
<text
type="string"
length="1"
@ -497,44 +535,16 @@
label="Play sounds from gestures"
top_pad="5"
left="20"/>
<text
layout="topleft"
<check_box
control_name="VoiceVisualizerEnabled"
height="15"
tool_tip="Check to show voice dot indicator above avatars"
label="Show voice dot above avatars"
layout="topleft"
name="voice_dot_visualizer"
left="260"
top_pad="-12"
width="100"
name="noise_suppression_label">
Noise Suppression
</text>
<combo_box
control_name="VoiceNoiseSuppressionLevel"
layout="topleft"
height="23"
left_pad="10"
top_pad="-18"
name="noise_suppression_combo"
width="80">
<item
label="Off"
name="noise_suppression_none"
value="0"/>
<item
label="Low"
name="noise_suppression_low"
value="1"/>
<item
label="Moderate"
name="noise_suppression_moderate"
value="2"/>
<item
label="High"
name="noise_suppression_high"
value="3"/>
<item
label="Max"
name="noise_suppression_max"
value="4"/>
</combo_box>
top_pad="-15"
width="200"/>
<button
control_name="ShowDeviceSettings"
follows="left|top"