Merge branch 'release/2025.08' of https://github.com/secondlife/viewer
commit
1a80805ef8
|
|
@ -1011,6 +1011,7 @@ void LLPluginProcessParent::poll(F64 timeout)
|
|||
}
|
||||
|
||||
// Remove instances in the done state from the sInstances map.
|
||||
LLCoros::LockType lock(*sInstancesMutex);
|
||||
mapInstances_t::iterator itClean = sInstances.begin();
|
||||
while (itClean != sInstances.end())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1710,6 +1710,11 @@ void LLFloaterIMContainer::showConversation(const LLUUID& session_id)
|
|||
if (session_floater)
|
||||
{
|
||||
session_floater->restoreFloater();
|
||||
if (session_floater->isTornOff() && session_floater->isMinimized())
|
||||
{
|
||||
session_floater->setMinimized(false);
|
||||
session_floater->setFocus(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ void LLWebRTCVoiceClient::updateSettings()
|
|||
config.mNoiseSuppressionLevel = noiseSuppressionLevel;
|
||||
audioConfigChanged = true;
|
||||
}
|
||||
if (audioConfigChanged)
|
||||
if (audioConfigChanged && mWebRTCDeviceInterface)
|
||||
{
|
||||
mWebRTCDeviceInterface->setAudioConfig(config);
|
||||
}
|
||||
|
|
@ -804,8 +804,11 @@ void LLWebRTCVoiceClient::setRenderDevice(const std::string& name)
|
|||
void LLWebRTCVoiceClient::tuningStart()
|
||||
{
|
||||
if (!mIsInTuningMode)
|
||||
{
|
||||
if (mWebRTCDeviceInterface)
|
||||
{
|
||||
mWebRTCDeviceInterface->setTuningMode(true);
|
||||
}
|
||||
mIsInTuningMode = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -813,8 +816,11 @@ void LLWebRTCVoiceClient::tuningStart()
|
|||
void LLWebRTCVoiceClient::tuningStop()
|
||||
{
|
||||
if (mIsInTuningMode)
|
||||
{
|
||||
if (mWebRTCDeviceInterface)
|
||||
{
|
||||
mWebRTCDeviceInterface->setTuningMode(false);
|
||||
}
|
||||
mIsInTuningMode = false;
|
||||
}
|
||||
}
|
||||
|
|
@ -847,6 +853,10 @@ void LLWebRTCVoiceClient::tuningSetSpeakerVolume(float volume)
|
|||
|
||||
float LLWebRTCVoiceClient::tuningGetEnergy(void)
|
||||
{
|
||||
if (!mWebRTCDeviceInterface)
|
||||
{
|
||||
return 0.f;
|
||||
}
|
||||
float rms = mWebRTCDeviceInterface->getTuningAudioLevel();
|
||||
return TUNING_LEVEL_START_POINT - TUNING_LEVEL_SCALE * rms;
|
||||
}
|
||||
|
|
@ -874,8 +884,11 @@ void LLWebRTCVoiceClient::refreshDeviceLists(bool clearCurrentList)
|
|||
clearCaptureDevices();
|
||||
clearRenderDevices();
|
||||
}
|
||||
if (mWebRTCDeviceInterface)
|
||||
{
|
||||
mWebRTCDeviceInterface->refreshDevices();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void LLWebRTCVoiceClient::setHidden(bool hidden)
|
||||
|
|
@ -1182,7 +1195,7 @@ void LLWebRTCVoiceClient::sendPositionUpdate(bool force)
|
|||
void LLWebRTCVoiceClient::updateOwnVolume()
|
||||
{
|
||||
F32 audio_level = 0.0f;
|
||||
if (!mMuteMic)
|
||||
if (!mMuteMic && mWebRTCDeviceInterface)
|
||||
{
|
||||
float rms = mWebRTCDeviceInterface->getPeerConnectionAudioLevel();
|
||||
audio_level = LEVEL_START_POINT - LEVEL_SCALE * rms;
|
||||
|
|
|
|||
Loading…
Reference in New Issue