lutris / agora

Public discussion space for the community
11 stars 0 forks source link

[Feature Request] Add Volume Slider for Individual Games #51

Open Saroufim opened 4 years ago

Saroufim commented 4 years ago

Some games have a lower volume than the others, including those that run through wine/proton. It would be nice to either automatically raise the volume a certain percentage when the game starts and reset it back to the value it was on before after the game exits or to be able to amplify the volume output of the game beyond the in-game maximum levels without changing the level of the system volume.

malefice commented 3 years ago

@strycore I also have taken a look into this, and this is definitely doable with the pulseaudio command line utilities pacmd and pactl. Is it reasonable to assume that Linux installations for gaming will have those installed?

Also, do you prefer to manipulate system volume levels temporarily, or do you want "per application" controls? The former is fairly easy to do, and I can probably submit a PR early next week. The latter have air quotes because there might be some gotchas based on what I have seen, e.g. you can set the volume per application, but the effect will remain in subsequent runs even when not triggered by lutris.

strycore commented 3 years ago

we could have a system option to run a game at a given volume level. I also would be interested in forcing a game into using a specific audio output. It would be best for lutris not to mess with global volume and only modify the volume of applications it launches.