summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicewebrtc.h
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-12-01 01:14:33 -0800
committerRoxie Linden <roxie@lindenlab.com>2024-02-22 23:11:35 -0800
commit0b9c27dc70255385fd65ac2f1f8f99e2e013ea03 (patch)
tree23ef11f729d2348656da793f262ee359e7930ab6 /indra/newview/llvoicewebrtc.h
parent7bc2f93e53105c043814c5c9bb1bac80e57b15aa (diff)
Using the device module to set speaker/mic volume set the system mic/volume
for all applications. Instead, modify the volume on the various streams.
Diffstat (limited to 'indra/newview/llvoicewebrtc.h')
-rw-r--r--indra/newview/llvoicewebrtc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llvoicewebrtc.h b/indra/newview/llvoicewebrtc.h
index 456681ed25..f0549495e1 100644
--- a/indra/newview/llvoicewebrtc.h
+++ b/indra/newview/llvoicewebrtc.h
@@ -336,6 +336,10 @@ public:
void OnConnectionFailure(const std::string &channelID);
void sendData(const std::string &data);
+
+ void setMuteMic(bool muted);
+ void setMicGain(F32 volume);
+ void setSpeakerVolume(F32 volume);
static void for_each(sessionFunc_t func);
@@ -350,6 +354,10 @@ public:
std::string mName;
std::string mErrorStatusString;
std::queue<std::string> mTextMsgQueue;
+
+ bool mMuted;
+ F32 mMicGain;
+ F32 mSpeakerVolume;
LLUUID mIMSessionID;
LLUUID mCallerID;
@@ -404,6 +412,9 @@ public:
static void predSendData(const LLWebRTCVoiceClient::sessionStatePtr_t &session, const std::string& spatial_data, const std::string& volume_data);
static void predUpdateOwnVolume(const LLWebRTCVoiceClient::sessionStatePtr_t &session, F32 audio_level);
static void predSetMuteMic(const LLWebRTCVoiceClient::sessionStatePtr_t &session, bool mute);
+ static void predSetMicGain(const LLWebRTCVoiceClient::sessionStatePtr_t &session, F32 volume);
+ static void predSetSpeakerVolume(const LLWebRTCVoiceClient::sessionStatePtr_t &session, F32 volume);
+
//////////////////////////////
/// @name TVC/Server management and communication
//@{
@@ -746,6 +757,9 @@ class LLVoiceWebRTCConnection :
bool connectionStateMachine();
void sendData(const std::string &data);
+ void setMuteMic(bool muted);
+ void setMicGain(F32 volume);
+ void setSpeakerVolume(F32 volume);
void shutDown()
{
@@ -811,6 +825,10 @@ protected:
bool mShutDown;
+ bool mMuted;
+ F32 mMicGain;
+ F32 mSpeakerVolume;
+
std::vector<llwebrtc::LLWebRTCIceCandidate> mIceCandidates;
bool mIceCompleted;
bool mTrickling;