0 votes
func _on_SoundEffectSlider_value_changed(value):
    AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"), value)
    print(var2str(AudioServer.get_bus_volume_db(AudioServer.get_bus_index("Master"))))

Sound slider has max value 1 and step 0.05, code above does change and print correct value from 0.0 to 1.0, but actual volume does not change?

Am I doing something wrong ?

On Linux with pulse audio...

Godot version 3.2.3.stable
in Engine by (87 points)

1 Answer

0 votes
Best answer

The volume range is from -80 to 6.
You just have to change the min and max value of your slider.

by (1,450 points)
selected by

Thank you ! Works great with -80 to 6

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.