maltejur / discord-screenaudio

A custom discord client that supports streaming with audio on Linux.
1.1k stars 35 forks source link

Microphone volume bolts to 100% on various occasions #100

Open Diegovsky opened 1 year ago

Diegovsky commented 1 year ago

Per the title, it happens when I join a call or share my screen. I don't want my microphone to be set to 100% because it is already very loud.

Growebis commented 1 year ago

This is also happening to me and its quite annoying.

Robotcircus1 commented 1 year ago

its happening to me too, i used to use flatseal to stop it from doing that but it seems that method doesn't work anymore ):

tarorororororo commented 1 year ago

Same here

tarorororororo commented 1 year ago

I fixed it by changing my microphone profile in KDE's settings "digital stereo duplex". I am not sure if these settings are easily accessible on other setups. The other profiles available are like analog stereo input/output/duplex etc. My setup is this: https://files.catbox.moe/1elcmo.png

Robotcircus1 commented 1 year ago

okay ive somewhat figured out a workaround (at least one for my system for now) so you have to get the flatpak version of discordscreenaudio and flatseal, open flatseal and on discordscreenaudio's options turn the all devices option off screen After that go into discordscreenaudio, got to voice and video options, select your mic and turn the input volume to zero Screenshot_20230422_125304 after that you should be able to change your mic volume via your mixer (or whatever else you use to adjust mic volume) and it SHOULD not mess with the volume, at least it doesn't for me. Screenshot_20230422_125549 I hope this works for anyone needing it

Diegovsky commented 1 year ago

Flatseal is not an option. The problem is with the application. I don't like to rush devs but I'm pinging @maltejur just to let you know this is happening and that if you happen to have an idea about why this happens I would be glad to spend some hours to try and fix it.

maltejur commented 1 year ago

I also don't really know what is causing this issue, that's why I have been quiet in this issue so far. I can look a bit further into it though.

Diegovsky commented 1 year ago

Ah, that's ok. Thanks for acknowledging it

Mica-CRT commented 1 year ago

Sorry, isn't this client a sort of web browser wrapped with the audio's script and the virt-mic daemon? I had this volume bolts when using google meet and i remember fixing it by installing an extension like "Disable Automatic Gain Control" on my browser (chromium based). Maybe there's a possibility to implement something like this on the client?

maltejur commented 1 year ago

That indeed looks promising. I'll have a look if I can integrate that as a option.

On 25.05.23 14:49, Giovanni Micalizzi wrote:

Sorry, isn't this client a sort of web browser wrapped with the audio's script and the virt-mic daemon? I had this volume bolts when using google meet and i remember fixing it by installing an extension like "Disable Automatic Gain Control" https://chrome.google.com/webstore/detail/disable-automatic-gain-co/clpapnmmlmecieknddelobgikompchkk on my browser (chromium based). Maybe there's a possibility of implements something like this on the client?

— Reply to this email directly, view it on GitHub https://github.com/maltejur/discord-screenaudio/issues/100#issuecomment-1562849777, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALPOEUJ3HKEYWGV5J7T7EG3XH5IMFANCNFSM6AAAAAAUXHHZNQ. You are receiving this because you were mentioned.Message ID: @.***>

maltejur commented 1 year ago

I've pushed some experimental code to the autogain branch where I've added a toggle to disable automatic gain in the "Voice & Video" settings. Is anybody who has this issue able to build that and check if the issue is resolved? If you aren't able to build it yourself, I can also attach binaries here, just let me know.

Diegovsky commented 1 year ago

Thanks for taking the time, I'll look at it sometime this week

SebastianMeinberger commented 11 months ago

I had the same problem with the webRTC auto gain adjustment, but the discord internal option for automatic gain adjustment seems to have turned that off to. image Since I turned that off, everything in working perfectly.

Str4ngeB0y commented 8 months ago

Adjust the input volume in Discord so that it matches your system mic volume. E.g. my system mic volume should be at 35% so I turned down the input volume in Discord to 82% (idk why it scales so weirdly)

When Discord notices a new audio device, it adjusts the system volume according to its input volume setting. Since launching discord-screenaudio and/or starting a stream creates a virtmic, it notices a change and thus applies the input volume from the settings to your system mic. When you close discord-screenaudio, virtmic disappears and Discord notices another change in your audio devices, which means yet another adjustment to the system volume.