Link volume sliders?

Moderator: GZDoom Developers

Post Reply
User avatar
maseter
Posts: 170
Joined: Wed Apr 15, 2015 1:16 pm

Link volume sliders?

Post by maseter »

Idea: A link volume toggle for the "sound options" menu?

Which when enabled, would link, or tie, sound, menu and music volumes together.
So if you increase sound volume for 0.1, menu and music volume would be also raised for 0.1.

Or maybe a general volume slider, so you can raise all volume by the same value at once. Thanks!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Link volume sliders?

Post by Graf Zahl »

Aside from being pointless in my opinion, this would require quite a bit of very specific coding in the menu. I might close this right away as I wouldn't expect anyone to invest some time in such a niche feature.
User avatar
maseter
Posts: 170
Joined: Wed Apr 15, 2015 1:16 pm

Re: Link volume sliders?

Post by maseter »

How about a "mute" cvar instead? So you could bind it to a key.

Moving 3 sliders all the back to zero to get silence isn't practical.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Link volume sliders?

Post by Graf Zahl »

That sounds more practical and infinitely more useful.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Link volume sliders?

Post by Gez »

You know, if you really want that, you can do it by yourself with some console aliases.

You want to change snd_sfxvolume, snd_menuvolume, and snd_musicvolume.

To lower all three values:

Code: Select all

alias snd_lowerall "eval - $snd_sfxvolume 0.1 snd_sfxvolume; eval - $snd_sfxvolume 0.1 snd_menuvolume; eval - $snd_sfxvolume 0.1 snd_musicvolume"
To raise all three values:

Code: Select all

alias snd_lowerall "eval + $snd_sfxvolume 0.1 snd_sfxvolume; eval + $snd_sfxvolume 0.1 snd_menuvolume; eval + $snd_sfxvolume 0.1 snd_musicvolume"
With some barely more complicated code, you can first store the current values in temporary user CVARs and then do proper toggling.

You can even make yourself a small menu mod like mine where you put the console aliases in a KEYCONF lump and then you can add the raise all and lower all functions as commands in the [wiki]MENUDEF[/wiki] part.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Link volume sliders?

Post by NeuralStunner »

Would a Master Volume be more practical?
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Link volume sliders?

Post by Major Cooke »

That used to be in zdoom, and was eventually removed. I think...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Link volume sliders?

Post by Graf Zahl »

ZDoom once had a separate MIDI volume slider but that became redundant with FModEx and was removed. I can't remember a master volume slider.
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Link volume sliders?

Post by Nash »

Master volume suggestion is still open...
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”