summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicewebrtc.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2025-11-07 17:22:27 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2025-11-07 17:23:55 +0200
commit74a64d206d8068a1f14c8df30407dbf4a596d7e8 (patch)
treeb960226dee8ea64c3dde20178d57e6ee368a72b2 /indra/newview/llvoicewebrtc.cpp
parentc39135cd848305c3acfcbd6dd2fc817cd09951de (diff)
parentc8d08ee388ff8c968802412db134136c529e5bca (diff)
Merge branch 'develop' into maxim/voice-moderation
Diffstat (limited to 'indra/newview/llvoicewebrtc.cpp')
-rw-r--r--indra/newview/llvoicewebrtc.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index 1d78ca002a..c57557079e 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -736,8 +736,6 @@ void LLWebRTCVoiceClient::OnDevicesChangedImpl(const llwebrtc::LLWebRTCVoiceDevi
std::string outputDevice = gSavedSettings.getString("VoiceOutputAudioDevice");
LL_DEBUGS("Voice") << "Setting devices to-input: '" << inputDevice << "' output: '" << outputDevice << "'" << LL_ENDL;
- bool update_render = false;
- bool update_capture = false;
// only set the render device if the device list has changed.
if (mRenderDevices.size() != render_devices.size() || !std::equal(mRenderDevices.begin(),
@@ -751,7 +749,7 @@ void LLWebRTCVoiceClient::OnDevicesChangedImpl(const llwebrtc::LLWebRTCVoiceDevi
{
addRenderDevice(LLVoiceDevice(device.mDisplayName, device.mID));
}
- update_render = true;
+ setRenderDevice(outputDevice);
}
// only set the capture device if the device list has changed.
@@ -768,22 +766,6 @@ void LLWebRTCVoiceClient::OnDevicesChangedImpl(const llwebrtc::LLWebRTCVoiceDevi
addCaptureDevice(LLVoiceDevice(device.mDisplayName, device.mID));
}
- update_capture = true;
- }
-
- if (update_render && update_capture)
- {
- // Do both in one go to avoid multiple deployDevices calls.
- // And to avoid situation where workerDeployDevices has an
- // obsolete device id
- setDevices(inputDevice, outputDevice);
- }
- else if (update_render)
- {
- setRenderDevice(outputDevice);
- }
- else if (update_capture)
- {
setCaptureDevice(inputDevice);
}
@@ -817,15 +799,6 @@ void LLWebRTCVoiceClient::setRenderDevice(const std::string& name)
}
}
-void LLWebRTCVoiceClient::setDevices(const std::string& capture_name, const std::string& render_name)
-{
- if (mWebRTCDeviceInterface)
- {
- LL_DEBUGS("Voice") << "new capture device: " << capture_name << " New render device: " << render_name << LL_ENDL;
- mWebRTCDeviceInterface->setDevices(capture_name, render_name);
- }
-}
-
void LLWebRTCVoiceClient::tuningStart()
{
if (!mIsInTuningMode)