aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/SoundManager.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-03-04 19:06:05 +0100
committer Hop311 <hop3114@gmail.com>2023-03-04 19:06:05 +0100
commit3e088a2642d2d05eed011b2dd1bdee566225719f (patch)
tree4b80e3cbc20413f9b1ea57fed5a6f7a847328a29 /game/src/Autoload/SoundManager.gd
parent3a46095b678d75292090802280ce9dbd3f2d24dc (diff)
Comments marking implemeneted requirements
Diffstat (limited to 'game/src/Autoload/SoundManager.gd')
-rw-r--r--game/src/Autoload/SoundManager.gd8
1 files changed, 7 insertions, 1 deletions
diff --git a/game/src/Autoload/SoundManager.gd b/game/src/Autoload/SoundManager.gd
index d3f8039..c58ce1a 100644
--- a/game/src/Autoload/SoundManager.gd
+++ b/game/src/Autoload/SoundManager.gd
@@ -1,11 +1,16 @@
extends Node
+# REQUIREMENTS:
+# * SS-68
+
const _audio_directory_path : StringName = &"res://audio/sfx/"
var _loaded_sound : Dictionary = {}
var _bus_to_stream_player : Dictionary = {}
+# REQUIREMENTS:
+# * SND-10
func _ready():
var dir = DirAccess.open(_audio_directory_path)
for fname in dir.get_files():
@@ -28,7 +33,8 @@ func play_stream(sound : AudioStream, bus_type : String) -> void:
func play(sound : String, bus_type : String) -> void:
play_stream(_loaded_sound[sound], bus_type)
-# SND-7
+# REQUIREMENTS:
+# * SND-7
func play_effect_stream(sound : AudioStream) -> void:
play_stream(sound, "SFX")