diff options
| -rwxr-xr-x | indra/newview/llvoicevivox.cpp | 10 | ||||
| -rwxr-xr-x | indra/newview/llvoicevivox.h | 2 | 
2 files changed, 6 insertions, 6 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; diff --git a/indra/newview/llvoicevivox.h b/indra/newview/llvoicevivox.h index 3b86789108..176f7f56dc 100755 --- a/indra/newview/llvoicevivox.h +++ b/indra/newview/llvoicevivox.h @@ -747,7 +747,7 @@ private:  	std::string getAudioSessionHandle();      void setHidden(bool hidden); //virtual -	void sendPositionalUpdate(void); +	void sendPositionAndVolumeUpdate(void);  	void buildSetCaptureDevice(std::ostringstream &stream);  	void buildSetRenderDevice(std::ostringstream &stream); | 
