File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -985,7 +985,10 @@ void LLWebRTCVoiceClient::updatePosition(void)
985
985
LLWebRTCVoiceClient::participantStatePtr_t participant = findParticipantByID (" Estate" , gAgentID );
986
986
if (participant)
987
987
{
988
- participant->mRegion = gAgent .getRegion ()->getRegionID ();
988
+ if (participant->mRegion != region->getRegionID ()) {
989
+ participant->mRegion = region->getRegionID ();
990
+ setMuteMic (mMuteMic );
991
+ }
989
992
}
990
993
}
991
994
}
@@ -3104,23 +3107,20 @@ LLVoiceWebRTCSpatialConnection::~LLVoiceWebRTCSpatialConnection()
3104
3107
3105
3108
void LLVoiceWebRTCSpatialConnection::setMuteMic (bool muted)
3106
3109
{
3107
- if (mMuted != muted)
3110
+ mMuted = muted;
3111
+ if (mWebRTCAudioInterface )
3108
3112
{
3109
- mMuted = muted ;
3110
- if (mWebRTCAudioInterface )
3113
+ LLViewerRegion *regionp = gAgent . getRegion () ;
3114
+ if (regionp && mRegionID == regionp-> getRegionID () )
3111
3115
{
3112
- LLViewerRegion *regionp = gAgent .getRegion ();
3113
- if (regionp && mRegionID == regionp->getRegionID ())
3114
- {
3115
- mWebRTCAudioInterface ->setMute (muted);
3116
- }
3117
- else
3118
- {
3119
- // Always mute this agent with respect to neighboring regions.
3120
- // Peers don't want to hear this agent from multiple regions
3121
- // as that'll echo.
3122
- mWebRTCAudioInterface ->setMute (true );
3123
- }
3116
+ mWebRTCAudioInterface ->setMute (muted);
3117
+ }
3118
+ else
3119
+ {
3120
+ // Always mute this agent with respect to neighboring regions.
3121
+ // Peers don't want to hear this agent from multiple regions
3122
+ // as that'll echo.
3123
+ mWebRTCAudioInterface ->setMute (true );
3124
3124
}
3125
3125
}
3126
3126
}
You can’t perform that action at this time.
0 commit comments