compress music

This commit is contained in:
ultrablob 2024-05-07 19:50:15 -04:00
parent c4bb8dc381
commit 8344c034e4
23 changed files with 103 additions and 46 deletions

9
VolumeSlider.gd Normal file
View 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))