From 5f9daef8e00f3f2ae8a36004f3194a2613a17e05 Mon Sep 17 00:00:00 2001 From: minerjr Date: Sun, 2 Nov 2025 14:54:55 -0400 Subject: [PATCH] Updated to match upstream fix LL ended up fixing the same issue upstream, but returned 0.0f instead of 1.0f. Updated code to match formatting LL used and value. --- indra/newview/llvoicewebrtc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp index cfc9456582..6b2e9890ae 100644 --- a/indra/newview/llvoicewebrtc.cpp +++ b/indra/newview/llvoicewebrtc.cpp @@ -921,7 +921,9 @@ float LLWebRTCVoiceClient::tuningGetEnergy(void) // [FIRE-36022] - Removing my USB headset crashes entire viewer // This can cause an error if device interface can be NULL. if (!mWebRTCDeviceInterface) - return 1.0f; + { + return 0.0f; + } // [FIRE-36022] float rms = mWebRTCDeviceInterface->getTuningAudioLevel(); return TUNING_LEVEL_START_POINT - TUNING_LEVEL_SCALE * rms;