diff options
author | Aimee Linden <aimee@lindenlab.com> | 2010-02-01 12:03:15 +0000 |
---|---|---|
committer | Aimee Linden <aimee@lindenlab.com> | 2010-02-01 12:03:15 +0000 |
commit | 5eee046bb7d62e24df6c35018b3c5383f87ab587 (patch) | |
tree | fb93f84dd92455ecbf6fd7cafe38e4616914c3d4 /indra | |
parent | cdd3a7ecab1b9506eba52e8da92f349a4f7f2359 (diff) |
Fix EXT-4770 : Voice muting not working properly due to a change in the Vivox API
Added <Scope>Audio</Scope> to the SetParticipantMuteForMe message.
Reviewed by Lynx
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvoiceclient.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp index 560c2ab469..c062dd1732 100644 --- a/indra/newview/llvoiceclient.cpp +++ b/indra/newview/llvoiceclient.cpp @@ -3439,12 +3439,17 @@ void LLVoiceClient::sendPositionalUpdate(void) << "<Volume>" << volume << "</Volume>" << "</Request>\n\n\n"; - // Send a "mute for me" command for the user - stream << "<Request requestId=\"" << mCommandCookie++ << "\" action=\"Session.SetParticipantMuteForMe.1\">" - << "<SessionHandle>" << getAudioSessionHandle() << "</SessionHandle>" - << "<ParticipantURI>" << p->mURI << "</ParticipantURI>" - << "<Mute>" << (mute?"1":"0") << "</Mute>" - << "</Request>\n\n\n"; + if(!mAudioSession->mIsP2P) + { + // Send a "mute for me" command for the user + // Doesn't work in P2P sessions + stream << "<Request requestId=\"" << mCommandCookie++ << "\" action=\"Session.SetParticipantMuteForMe.1\">" + << "<SessionHandle>" << getAudioSessionHandle() << "</SessionHandle>" + << "<ParticipantURI>" << p->mURI << "</ParticipantURI>" + << "<Mute>" << (mute?"1":"0") << "</Mute>" + << "<Scope>Audio</Scope>" + << "</Request>\n\n\n"; + } } p->mVolumeDirty = false; |