Can't change audio volume

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wildboar
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…

:bust_in_silhouette: Reply From: Adam_S

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

Thank you ! Works great with -80 to 6

wildboar | 2021-02-21 16:25