summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicevivox.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2016-02-24 11:48:11 -0800
committerRider Linden <rider@lindenlab.com>2016-02-24 11:48:11 -0800
commit953b8ed694c2b5a2762e829e2ecf56fe07c23619 (patch)
treeb20ed567a09ea730860804b5afecbea48eceec1c /indra/newview/llvoicevivox.cpp
parent5361568f2697da1a519177fa6ee15449e1ea4878 (diff)
MAINT-6096: For non-spacial voice chats update the volume of participants. Rename "sendPositionalUpdate" to reflect volume changes.
Diffstat (limited to 'indra/newview/llvoicevivox.cpp')
-rwxr-xr-xindra/newview/llvoicevivox.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp
index 24a775ca42..c8bfc63a6a 100755
--- a/indra/newview/llvoicevivox.cpp
+++ b/indra/newview/llvoicevivox.cpp
@@ -1253,7 +1253,7 @@ bool LLVivoxVoiceClient::addAndJoinSession(const sessionStatePtr_t &nextSession)
mSpeakerVolumeDirty = true;
mSpatialCoordsDirty = true;
- sendPositionalUpdate();
+ sendPositionAndVolumeUpdate();
notifyStatusObservers(LLVoiceClientStatusObserver::STATUS_JOINED);
@@ -1501,8 +1501,8 @@ bool LLVivoxVoiceClient::runSession(const sessionStatePtr_t &session)
}
// Do the calculation that enforces the listener<->speaker tether (and also updates the real camera position)
enforceTether();
- sendPositionalUpdate();
}
+ sendPositionAndVolumeUpdate();
// Do notifications for expiring Voice Fonts.
if (mVoiceFontExpiryTimer.hasExpired())
@@ -2443,15 +2443,15 @@ void LLVivoxVoiceClient::setHidden(bool hidden)
{
mHidden = hidden;
- sendPositionalUpdate();
+ sendPositionAndVolumeUpdate();
return;
}
-void LLVivoxVoiceClient::sendPositionalUpdate(void)
+void LLVivoxVoiceClient::sendPositionAndVolumeUpdate(void)
{
std::ostringstream stream;
- if(mSpatialCoordsDirty)
+ if (mSpatialCoordsDirty && inSpatialChannel())
{
LLVector3 l, u, a, vel;
LLVector3d pos;