Hello anyone that sees this! I recently started working on a settings menu with audio sliders for master, music, and SFX volume, but whenever I click the value I set the sliders to start at, which is halfway, the audio gets very loud.

Here are the settings I'm using on all of the sliders:

And here is the code:
func _on_master_value_changed(value: float) -> void:
AudioServer.set_bus_volume_linear(AudioServer.get_bus_index("Master"), value)

func _on_music_value_changed(value: float) -> void:
AudioServer.set_bus_volume_linear(AudioServer.get_bus_index("Music"), value)

func _on_sfx_value_changed(value: float) -> void:
AudioServer.set_bus_volume_linear(AudioServer.get_bus_index("SFX"), value)

How are the slider values mapped to the volume levels?

When implementing a volume slider, I had to experiment to determine the appropriate minimum and maximum decibel values. In my case, I decided that the minimum slider value should correspond to -60 dB, and the maximum slider value should correspond to 0 dB. I use a linear transformation to convert the slider value to the volume dB value.

if jesus was a friend





Thank you both so much for the advice! I found a video that solved the issue, and it did things that both of you mentioned. I appreciate that you took time out of your day to help me, and again I'm very grateful for your help! Here is the video for any unfortunate souls that are facing the same struggle that I did. Follow it exactly or you may run into a problem.