aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 15:01:02 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 15:01:02 +0100
commitf8ffac3b14d41e7d1e43ffe64750d910ed333b0d (patch)
tree1417b93d5e57df858f0cd4177e3c8b5ffbcc021b /src
parent5d798c30af7026099344a068e91e1684018b4386 (diff)
parentf31bd86ae5d7df21b788a273d4f2e530136ec184 (diff)
another merge + WIP
Diffstat (limited to 'src')
-rw-r--r--src/crepe/system/AudioSystem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crepe/system/AudioSystem.cpp b/src/crepe/system/AudioSystem.cpp
index d4e8b9f..3c2232f 100644
--- a/src/crepe/system/AudioSystem.cpp
+++ b/src/crepe/system/AudioSystem.cpp
@@ -36,6 +36,8 @@ void AudioSystem::diff_update(AudioSource & component, Sound & resource) {
if (component.oneshot_play) {
component.voice = context.play(resource);
+ context.set_loop(component.voice, component.loop);
+ context.set_volume(component.voice, component.volume);
component.oneshot_play = false;
}
if (component.oneshot_stop) {