aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Autoload/SoundManager.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-10-20 23:02:04 +0200
committer hop311 <hop3114@gmail.com>2024-10-20 23:02:04 +0200
commit45d56aed583fd0db2f6201f9179f3919d2528d89 (patch)
tree78c5cf07c7218db9a91849115b75250b5ac6d009 /game/src/Game/Autoload/SoundManager.gd
parent4c6e41074381ad5b61d64a796c242806cc61a18c (diff)
Minor formatting changes (mostly whitespace cleanup)
Diffstat (limited to 'game/src/Game/Autoload/SoundManager.gd')
-rw-r--r--game/src/Game/Autoload/SoundManager.gd3
1 files changed, 1 insertions, 2 deletions
diff --git a/game/src/Game/Autoload/SoundManager.gd b/game/src/Game/Autoload/SoundManager.gd
index 01562f8..520afb1 100644
--- a/game/src/Game/Autoload/SoundManager.gd
+++ b/game/src/Game/Autoload/SoundManager.gd
@@ -41,7 +41,7 @@ func play_effect_stream(sound : AudioStream, volume : float = 1.0) -> void:
func play_effect(sound : String) -> void:
play(sound, "SFX")
-
+
func play_effect_compat(sfx : String, fallback : AudioStream=null) -> void:
var sound:AudioStreamWAV = SoundSingleton.get_sound_stream(sfx)
var volume:float = SoundSingleton.get_sound_base_volume(sfx)
@@ -53,4 +53,3 @@ func play_effect_compat(sfx : String, fallback : AudioStream=null) -> void:
play_effect_stream(fallback)
else:
push_warning("Failed to find sound %s" % sfx)
-