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
parent
834b198a87
commit
5f9daef8e0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue