phoenix-firestorm/indra
Roxanne Skelly d070b996bd [WebRTC] Rework device handling sequence so that we can handle unplugging/re-plugging devices (#4593)
* [WebRTC] Rework device handling sequence so that we can handle unplugging/re-plugging devices

The device handling was not processing device updates in the proper sequence as
things like AEC use both input and output devices.  Devices like headsets are both
so unplugging them resulted in various mute conditions and sometimes even a crash.

Now, we update both capture and render devices at once in the proper sequence.

Test Guidance:
* Bring two users in the same place in webrtc regions.
* The 'listening' one should have a headset or something set oas 'Default'
* Press 'talk' on one, and verify the other can hear.
* Unplug the headset from the listening one.
* Validate that audio changes from the headset to the speakers.
* Plug the headset back in.
* Validate that audio changes from speakers to headset.
* Do the same type of test with the headset viewer talking.
* The microphone used should switch from the headset to the computer (it should have one)

Do other various device tests, such as setting devices explicitly, messing with the device selector, etc.

* Fix race condition when multiple change device requests might come in at once

* Update to m137

The primary feature of this commit is to update libwebrtc from m114
to m137.  This is needed to make webrtc buildable, as m114 is not buildable
by the current toolset.

m137 had some changes to the API, which required renaming or changing namespace
of some of the calls.

Additionally, this PR moves from a callback mechanism for gathering the energy
levels for tuning to a wrapper AudioDeviceModule, which gives us more control
over the audio stream.

Finally, the new m137-based webrtc has been updated to allow for 192khz audio
streams.

* Properly pass the observer setting into the inner audio device module

* Update to m137 and get rid of some noise

    This change updates to m137 from m114, which required a few API changes.

    Additionally, this fixes the hiss that happens shortly after someone unmutes: https://github.com/secondlife/server/issues/2094

    There was also an issue with a slight amount of repeated after unmuting if there was audio right before unmuting.  This is because
    the audio processing and buffering still had audio from the previous speaking session.  Now, we inject nearly a half second of
    silence into the audio buffers/processor after unmuting to flush things.

* Install nsis on windows

* Use the newer digital AGC pipeline

m137 improved the AGC pipeline and the existing analog style is going away
so move to the new digital pipeline.

Also, some tweaking for audio levels so that we don't see inworld bars when tuning,
so one's own bars seem a reasonable size, etc.

* Install NSIS during windows sisgning and package build step

* Try pinning the packaging to windows 2022 to deal with missing nsis

* Adjust gain calculation and audio level calculations for tuning and peer connections

* Update with mac universal webrtc build

* Tuning of voice indicators for both tuning mode and inworld for self.

* Redo device deployment to handle cases where multiple deploy requests pile up

Also, mute when leaving webrtc-enabled regions or parcels,
and unmute when voice comes back.

* pre commit issue
2025-10-12 16:32:18 +10:00
..
cmake More unused-but-set fixes. Also remove Linux exclusion 2025-09-08 21:45:25 +01:00
copy_win_scripts
doxygen
integration_tests
lib/python/indra
linux_crash_logger
llappearance
llaudio
llcharacter
llcommon Merge pull request #156 from FirestormViewer/improvement/opensim_remove_slt_time 2025-09-04 10:00:13 +01:00
llcorehttp
llcrashlogger
llfilesystem FIRE-35986: Restore using subfolders for asset cache 2025-10-03 15:49:56 +02:00
llimage Corrected calcDataSizeJ2C change so it compiles on macOS and Linux 2025-10-12 02:05:02 +10:00
llimagej2coj Fix OpenJPEG uploading small textures by correctly accounting for the maximum numresolutions 2025-09-20 22:10:21 +10:00
llinventory #4772 fix group ownership detection for deeded objects (FS:TJ- Fixes issue FIRE-35983) 2025-10-10 04:27:49 +10:00
llkdu
llmath Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm into texture-changes-reverted 2025-09-30 16:38:47 +02:00
llmeshoptimizer
llmessage
llplugin
llprimitive
llrender Revert "Make snapshot guides more visible" 2025-10-10 08:59:40 +02:00
llui Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm into texture-changes-reverted 2025-09-30 16:38:47 +02:00
llwebrtc [WebRTC] Rework device handling sequence so that we can handle unplugging/re-plugging devices (#4593) 2025-10-12 16:32:18 +10:00
llwindow
llxml
mac_crash_logger
media_plugins
newview [WebRTC] Rework device handling sequence so that we can handle unplugging/re-plugging devices (#4593) 2025-10-12 16:32:18 +10:00
test
tools
viewer_components
win_crash_logger
CMakeLists.txt
Version
edit-me-to-trigger-new-build.txt