ferdium / ferdium-app

All your services in one place, built by the community
https://ferdium.org
Apache License 2.0
2.68k stars 164 forks source link

WebRTC automatic gain setting on system microphone settings #1151

Open elderlabs opened 1 year ago

elderlabs commented 1 year ago

Avoid duplicates

Ferdium Version

6.2.6 (28d1f763)

What Operating System are you using?

Windows

Operating System Version

Windows 10 22H2 (19045.2846)

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

Ferdium should not touch my input device's gain settings.

Actual Behavior

Ferdium is touching my input device's gain settings.

Steps to reproduce

  1. Open Control Panel (control.exe) >> "Sound" >> "Recording" tab
  2. Open the "Properties" of your input device >> "Levels" tab
  3. Change the level to an alternate value, perhaps 10% (mine's 75%) >> "Ok" button NOTE: disabling Exclusive mode in the "Advanced" tab does nothing
  4. Open a WebRTC application in Ferdium that uses your microphone (ie. Google Voice, or perhaps Discord)
  5. Make a voice call
  6. Open your device's properties levels tab again
  7. Observe your microphone's level change (mine spikes to 92%) in Sound properties NOTE: in my reading, this may not affect USB-based input devices (mine is a device-internal mic)

Debug link

No response

Screenshots

No response

Additional information

In my research, this appears to be a Chromium/Electron bug. The issue is discussed in this Chromium bug report, with a possible app-level fix. Perhaps this could become a setting toggle in Ferdium? Discord's app is built with Electron, same as Ferdium. I believe Discord solved this issue with a similar fix, as it does not alter my mic's levels, and has its own built-in audio settings page.

Additional info may be provided upon request.

guilhermegps commented 4 days ago

Any update about it?