diff options
author | sethalvesLL <setha@lindenlab.com> | 2025-05-22 09:43:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-22 09:43:51 -0700 |
commit | 5047a0b439cd84d2d6ccdecc5c47a75736e01cd4 (patch) | |
tree | 1db61dba6a49e9cd94d3be6df3cc4319ce21cc31 | |
parent | a31b7ae2419b4f644ddf559274f650e34212338e (diff) | |
parent | 28edf9e0c0309943dc406b824fc628a66d28f4ce (diff) |
Merge pull request #4100 from secondlife/viewer-1865-for-2025.04
Viewer 1865 for 2025.04
-rw-r--r-- | indra/newview/llvoicewebrtc.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp index 08fcec86ac..9835a69e4e 100644 --- a/indra/newview/llvoicewebrtc.cpp +++ b/indra/newview/llvoicewebrtc.cpp @@ -985,7 +985,10 @@ void LLWebRTCVoiceClient::updatePosition(void) LLWebRTCVoiceClient::participantStatePtr_t participant = findParticipantByID("Estate", gAgentID); if(participant) { - participant->mRegion = gAgent.getRegion()->getRegionID(); + if (participant->mRegion != region->getRegionID()) { + participant->mRegion = region->getRegionID(); + setMuteMic(mMuteMic); + } } } } @@ -3104,23 +3107,20 @@ LLVoiceWebRTCSpatialConnection::~LLVoiceWebRTCSpatialConnection() void LLVoiceWebRTCSpatialConnection::setMuteMic(bool muted) { - if (mMuted != muted) + mMuted = muted; + if (mWebRTCAudioInterface) { - mMuted = muted; - if (mWebRTCAudioInterface) + LLViewerRegion *regionp = gAgent.getRegion(); + if (regionp && mRegionID == regionp->getRegionID()) { - LLViewerRegion *regionp = gAgent.getRegion(); - if (regionp && mRegionID == regionp->getRegionID()) - { - mWebRTCAudioInterface->setMute(muted); - } - else - { - // Always mute this agent with respect to neighboring regions. - // Peers don't want to hear this agent from multiple regions - // as that'll echo. - mWebRTCAudioInterface->setMute(true); - } + mWebRTCAudioInterface->setMute(muted); + } + else + { + // Always mute this agent with respect to neighboring regions. + // Peers don't want to hear this agent from multiple regions + // as that'll echo. + mWebRTCAudioInterface->setMute(true); } } } |