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.
meow-7.2.2
minerjr 2025-11-02 14:54:55 -04:00
parent 834b198a87
commit 5f9daef8e0
1 changed files with 3 additions and 1 deletions

View File

@ -921,7 +921,9 @@ float LLWebRTCVoiceClient::tuningGetEnergy(void)
// <FS:minerjr> [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;
}
// </FS:minerjr> [FIRE-36022]
float rms = mWebRTCDeviceInterface->getTuningAudioLevel();
return TUNING_LEVEL_START_POINT - TUNING_LEVEL_SCALE * rms;