summaryrefslogtreecommitdiff
path: root/indra/llwebrtc/llwebrtc.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-09-13 22:49:39 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-08 18:34:01 -0800
commitf519506e0455748794792ab59e4865ad2ae87ab3 (patch)
tree6a19d9adcea1ca35ffe405f8763f80f7a6851f64 /indra/llwebrtc/llwebrtc.cpp
parente554bf05293e34a5b8af7933127dff76c537f275 (diff)
fix some retry logic and speaker volume logic
Diffstat (limited to 'indra/llwebrtc/llwebrtc.cpp')
-rw-r--r--indra/llwebrtc/llwebrtc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp
index 862325c3f1..93981e4076 100644
--- a/indra/llwebrtc/llwebrtc.cpp
+++ b/indra/llwebrtc/llwebrtc.cpp
@@ -37,6 +37,8 @@
namespace llwebrtc
{
+const float VOLUME_SCALE_WEBRTC = 3.0f;
+
void LLWebRTCImpl::init()
{
mAnswerReceived = false;
@@ -356,7 +358,7 @@ void LLWebRTCImpl::setSpeakerVolume(float volume)
{
webrtc::AudioTrackInterface* audio_track = static_cast<webrtc::AudioTrackInterface*>(track);
webrtc::AudioSourceInterface* source = audio_track->GetSource();
- source->SetVolume(10.0 * volume);
+ source->SetVolume(VOLUME_SCALE_WEBRTC * volume);
}
}