summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicewebrtc.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-10-03 15:51:37 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-22 23:11:35 -0800
commit9d070201fe57e22db7cf55a2160a82e3c6413471 (patch)
tree60f36ef3aab06653393f1d78b81664548f9c5f0f /indra/newview/llvoicewebrtc.cpp
parent5872e037e801654d59f37e32f672db84c456d587 (diff)
fix device selection while speaking.
Diffstat (limited to 'indra/newview/llvoicewebrtc.cpp')
-rw-r--r--indra/newview/llvoicewebrtc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index b9e5c7a8b2..8d929fd36a 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -2479,7 +2479,6 @@ void LLWebRTCVoiceClient::OnAudioEstablished(llwebrtc::LLWebRTCAudioInterface *
mWebRTCAudioInterface = audio_interface;
mWebRTCAudioInterface->setAudioObserver(this);
float speaker_volume = 0;
- audio_interface->setMute(true);
{
LLMutexLock lock(&mVoiceStateMutex);
speaker_volume = mSpeakerVolume;
@@ -4872,6 +4871,7 @@ void LLWebRTCVoiceClient::sessionState::for_eachPredicate(const LLWebRTCVoiceCli
void LLWebRTCVoiceClient::sessionEstablished()
{
+ mWebRTCAudioInterface->setMute(mMuteMic);
addSession(gAgent.getRegion()->getRegionID().asString());
}