mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add sound volume when unfocused setting (#14083)
This adds a new setting to set sound volume multiplier when Minetest window is unfocused/inactive (sound_volume_unfocused, located in Settings > Graphics and Audio > Audio > Volume when unfocused). If the window is not focused, the sound volume will be multiplied by sound_volume_unfocused setting. The sound volume will be set back to sound_volume again when the window is focused.
This commit is contained in:
parent
321bcf5c44
commit
55fafb7d25
6 changed files with 38 additions and 14 deletions
|
@ -623,6 +623,9 @@ bloom_radius (Bloom Radius) float 1 0.1 8
|
|||
# Requires the sound system to be enabled.
|
||||
sound_volume (Volume) float 0.8 0.0 1.0
|
||||
|
||||
# Volume multiplier when the window is unfocused.
|
||||
sound_volume_unfocused (Volume when unfocused) float 0.3 0.0 1.0
|
||||
|
||||
# Whether to mute sounds. You can unmute sounds at any time, unless the
|
||||
# sound system is disabled (enable_sound=false).
|
||||
# In-game, you can toggle the mute state with the mute key or by using the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue