From 3a0e2354b3580166b5edf156224e2f7ac1eae5d7 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 30 Jan 2021 22:26:44 +0100 Subject: [PATCH] apply 3d after adding the sound --- MLEM/Misc/SoundEffectInstanceHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM/Misc/SoundEffectInstanceHandler.cs b/MLEM/Misc/SoundEffectInstanceHandler.cs index e931955..a877cfb 100644 --- a/MLEM/Misc/SoundEffectInstanceHandler.cs +++ b/MLEM/Misc/SoundEffectInstanceHandler.cs @@ -79,9 +79,9 @@ namespace MLEM.Misc { /// The passed instance, for chaining public SoundEffectInstance Add(SoundEffectInstance instance, Action onStopped = null, AudioEmitter emitter = null) { var entry = new Entry(instance, onStopped, emitter); - entry.TryApply3D(this.listeners); this.playingSounds.Add(entry); instance.Play(); + entry.TryApply3D(this.listeners); return instance; }