aboutsummaryrefslogtreecommitdiff
path: root/client/audio
diff options
context:
space:
mode:
Diffstat (limited to 'client/audio')
-rw-r--r--client/audio/play_random.gd4
-rw-r--r--client/audio/play_random.tscn2
2 files changed, 5 insertions, 1 deletions
diff --git a/client/audio/play_random.gd b/client/audio/play_random.gd
index d702756d..efaad7d8 100644
--- a/client/audio/play_random.gd
+++ b/client/audio/play_random.gd
@@ -52,6 +52,10 @@ func play_random():
s.pitch_scale = randf_range(0.9, 1.1)
s.play()
+func stop_all():
+ for s in sounds:
+ s.stop()
+
func start_autoplay():
autoplay = true
play_random()
diff --git a/client/audio/play_random.tscn b/client/audio/play_random.tscn
index f9b20842..44f3a10b 100644
--- a/client/audio/play_random.tscn
+++ b/client/audio/play_random.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=2 format=3 uid="uid://bncx0wul2ikrg"]
+[gd_scene load_steps=2 format=3 uid="uid://bbyb6s110my8c"]
[ext_resource type="Script" path="res://audio/play_random.gd" id="1_c8pxf"]