summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicewebrtc.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-12-04 14:22:40 -0800
committerRoxie Linden <roxie@lindenlab.com>2024-02-08 18:34:01 -0800
commite92e4d762ec5b2c122f17edb1a18b21ef6166e8b (patch)
treeb5b6c918865415c0d0729c9af9a304e201a87d2d /indra/newview/llvoicewebrtc.cpp
parentb10731f6f9f357907b7ba53d7531cfa3552c46cf (diff)
Mute using enable.
Muting using the device module microphone mute was muting other applications, speakers, and so on. Instead, we mute by enabling/disabling the input and output streams.
Diffstat (limited to 'indra/newview/llvoicewebrtc.cpp')
-rw-r--r--indra/newview/llvoicewebrtc.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index 435e2e1245..ddd757c39f 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -261,7 +261,6 @@ LLWebRTCVoiceClient::LLWebRTCVoiceClient() :
mEarLocation(0),
mSpeakerVolumeDirty(true),
- mSpeakerMuteDirty(true),
mMicVolume(0),
mMicVolumeDirty(true),
@@ -583,16 +582,7 @@ LLVoiceDeviceList& LLWebRTCVoiceClient::getCaptureDevices()
void LLWebRTCVoiceClient::setCaptureDevice(const std::string& name)
{
- bool inTuningMode = mIsInTuningMode;
- if (inTuningMode)
- {
- tuningStop();
- }
mWebRTCDeviceInterface->setCaptureDevice(name);
- if (inTuningMode)
- {
- tuningStart();
- }
}
void LLWebRTCVoiceClient::setDevicesListUpdated(bool state)
{
@@ -1863,12 +1853,6 @@ void LLWebRTCVoiceClient::setVoiceVolume(F32 volume)
if (volume != mSpeakerVolume)
{
{
- int min_volume = 0.0;
- if ((volume == min_volume) || (mSpeakerVolume == min_volume))
- {
- mSpeakerMuteDirty = true;
- }
-
mSpeakerVolume = volume;
mSpeakerVolumeDirty = true;
}