summaryrefslogtreecommitdiff
path: root/indra/llwebrtc
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-09-13 22:49:39 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-22 23:11:34 -0800
commitb476e1545bb398bcda7a9dd693ac3fcc5ab4b7b8 (patch)
tree89827ca3da0d14fb458f86ca459707dfffaa99a6 /indra/llwebrtc
parent0a844ef04703270bd20a1871206eb5b868d5f67b (diff)
fix some retry logic and speaker volume logic
Diffstat (limited to 'indra/llwebrtc')
-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);
}
}