secondlife / secondlife/viewer

WebRTC - Automatic Gain Control behaves weird

Open
#4,642 2 comments 0 reactions 1 assignee View on GitHub

@roxanneskelly is already working on this.

Since Sep 5, 2025.

bug triage
Dominant language
C++
Stars
299
Forks
146
Avg merge
1d 9h
Merged PRs (30d)
88

Description

Environment

Second Life Release 7.2.1.17108480561 (64bit)
Release Notes

You are at 50.5, 94.1, 22.7 in webRTC2 located at simhost-0462d668818ec3f3b.aditi
SLURL: secondlife://Aditi/secondlife/webRTC2/51/94/23
(global coordinates 260,147.0, 245,342.0, 22.7)
WebRTC-Voice 2025-08-21.17114312399
Release Notes

CPU: AMD Ryzen 9 9950X3D 16-Core Processor (4299.92 MHz)
Memory: 95890 MB
OS Version: Microsoft Windows 11 64-bit (Build 26100.4946)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: NVIDIA GeForce RTX 5090/PCIe/SSE2

Windows Graphics Driver Version: 32.0.15.8115
OpenGL Version: 4.6.0 NVIDIA 581.15

Window size: 2558x1360
Font Size Adjustment: 96pt
UI Scaling: 1
Draw distance: 256m
Bandwidth: 3000kbit/s
LOD factor: 2
Render quality: 6
Texture memory: 32607MB
Disk cache: Max size 2150.4 MB (100.0% used)

J2C Decoder Version: KDU v7.10.4
Audio Driver Version: OpenAL, version 1.1 ALSOFT 1.24.2 / OpenAL Community / OpenAL Soft: OpenAL Soft
Dullahan: 1.14.0.202408091639
CEF: 118.4.1+g3dd6078+chromium-118.0.5993.54
Chromium: 118.0.5993.54
LibVLC Version: 3.0.21
Voice Server Version: Secondlife WebRTC Gateway

Packets Lost: 0/4,848 (0.0%)
September 05 2025 15:29:59

Description

Note: this appears to be the case in the latest test build as well.

Doesn't seem to matter if you enable or disable AGC - we have some weird behavior here.

Reproduction steps
  1. Login to a WebRTC region
  2. Stand next to a listener and make some noise in spacial voice while doing the following;
  3. Set the Mic volume slider to Max in Preferences > Sound & Media > Voice Input/Output devices
  4. The listener hears no difference until you Toggle the Speak button off and on (#4796), so do that.
  5. Listener, note the volume
  6. Untick the Automatic Gain Control option in Preferences > Sound & Media
  7. Toggle the Speak button off and on
  8. Listener, compare the volume

Observed: There is no perceived volume difference with AGC on or off.

Expected: AGC should attenuate a high volume, and amplify a low volume.



This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️‍♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #4642 either in the PR description or in a PR's comment.

🪙 Also, everyone can tip any user commenting /tip 20 @Geenz (replace 20 with the amount, and @Geenz with the user to tip).

📖 If you want to learn more, check out our documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.