compress music
This commit is contained in:
parent
c4bb8dc381
commit
8344c034e4
23 changed files with 103 additions and 46 deletions
9
VolumeSlider.gd
Normal file
9
VolumeSlider.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends HSlider
|
||||
|
||||
|
||||
@export var audio_bus_name := "Music"
|
||||
|
||||
@onready var _bus := AudioServer.get_bus_index(audio_bus_name)
|
||||
|
||||
func _on_value_changed(value: float) -> void:
|
||||
AudioServer.set_bus_volume_db(_bus, linear_to_db(value))
|
Loading…
Add table
Add a link
Reference in a new issue