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-22 23:11:35 -0800
commit4f4f9032cb56712b2b514b5eea46ddda54b4094b (patch)
tree753284bca6bf6f1911879396edd5fe2433fc4752 /indra/newview/llvoicewebrtc.cpp
parente5a95a96bface28bbd37afe655209d04f03cd250 (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;
}