mirror of
https://github.com/drwhut/tabletop-club.git
synced 2025-05-05 23:42:57 +00:00
Adjusted the threshold of the audio compressor.
The threshold has been lowered to -6dB to try and prevent the audio from getting too loud. This can be the case if, for example, a lot of speakers are playing at the same time. In the options menu, the slider-to-volume mapping has also been adjusted. The maximum possible volume setting now maps to -6dB, and the default master volume is now 0.5, which is equivalent to -12dB.
This commit is contained in:
parent
894402e3ec
commit
135d5c2253
@ -88,7 +88,7 @@ hint_tooltip = "Sets the volume of all music sources in the game."
|
|||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
max_value = 1.0
|
max_value = 1.0
|
||||||
step = 0.01
|
step = 0.01
|
||||||
value = 0.5
|
value = 1.0
|
||||||
|
|
||||||
[node name="SoundsVolume" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/Audio/GridContainer"]
|
[node name="SoundsVolume" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/Audio/GridContainer"]
|
||||||
margin_top = 48.0
|
margin_top = 48.0
|
||||||
@ -107,7 +107,7 @@ hint_tooltip = "Sets the volume of sound sources played manually throughout the
|
|||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
max_value = 1.0
|
max_value = 1.0
|
||||||
step = 0.01
|
step = 0.01
|
||||||
value = 0.5
|
value = 1.0
|
||||||
|
|
||||||
[node name="EffectsVolume" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/Audio/GridContainer"]
|
[node name="EffectsVolume" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/Audio/GridContainer"]
|
||||||
margin_top = 72.0
|
margin_top = 72.0
|
||||||
@ -126,7 +126,7 @@ hint_tooltip = "Sets the volume of sound effects played automatically throughout
|
|||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
max_value = 1.0
|
max_value = 1.0
|
||||||
step = 0.01
|
step = 0.01
|
||||||
value = 0.5
|
value = 1.0
|
||||||
|
|
||||||
[node name="Controls" type="ScrollContainer" parent="MarginContainer/VBoxContainer/TabContainer"]
|
[node name="Controls" type="ScrollContainer" parent="MarginContainer/VBoxContainer/TabContainer"]
|
||||||
visible = false
|
visible = false
|
||||||
|
@ -481,7 +481,7 @@ func _show_restart_popup() -> void:
|
|||||||
# Returns: The associated decibel value.
|
# Returns: The associated decibel value.
|
||||||
# volume: The volume to convert.
|
# volume: The volume to convert.
|
||||||
func _volume_to_db(volume: float) -> float:
|
func _volume_to_db(volume: float) -> float:
|
||||||
return 8.656170245 * log(volume)
|
return 8.656170245 * log(0.5 * volume)
|
||||||
|
|
||||||
func _on_rebinding_action(action: String) -> void:
|
func _on_rebinding_action(action: String) -> void:
|
||||||
_action_to_bind = action
|
_action_to_bind = action
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[sub_resource type="AudioEffectCompressor" id=1]
|
[sub_resource type="AudioEffectCompressor" id=1]
|
||||||
resource_name = "Compressor"
|
resource_name = "Compressor"
|
||||||
|
threshold = -6.0
|
||||||
|
|
||||||
[sub_resource type="AudioEffectPitchShift" id=2]
|
[sub_resource type="AudioEffectPitchShift" id=2]
|
||||||
resource_name = "PitchShift"
|
resource_name = "PitchShift"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user