summaryrefslogtreecommitdiff
path: root/indra/llwebrtc/llwebrtc.cpp
diff options
context:
space:
mode:
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);
}
}