summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoxanne Skelly <roxanne@roxiware.com>2024-09-09 16:21:20 -0700
committerGitHub <noreply@github.com>2024-09-09 16:21:20 -0700
commit100fab22f56969a6abe15b0dd58881002db02ab3 (patch)
tree4ad1a72f619a8cfd488aee33f7ed15a6c329e67c
parentb7c82a8e7a5efcf56cf8c60ecc4922cf2942b70e (diff)
parent5f99c475dc89bd6293d157e85ad67cf6c832f578 (diff)
Merge pull request #2535 from secondlife/roxie/webrtc-1091
-rw-r--r--indra/newview/llvoicewebrtc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index 4528b57061..7de8cf9cb1 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -2983,7 +2983,9 @@ void LLVoiceWebRTCConnection::OnDataReceivedImpl(const std::string &data, bool b
// we got a 'power' update.
if (participant_obj.contains("p") && participant_obj["p"].is_number())
{
- participant->mLevel = (F32)participant_obj["p"].as_int64();
+ // server sends up power as an integer which is level * 128 to save
+ // character count.
+ participant->mLevel = (F32)participant_obj["p"].as_int64()/128.0f;
}
if (participant_obj.contains("v") && participant_obj["v"].is_bool())