mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 17:59:24 +01:00
apply 3d after adding the sound
This commit is contained in:
parent
5d9a5ecf13
commit
3a0e2354b3
1 changed files with 1 additions and 1 deletions
|
@ -79,9 +79,9 @@ namespace MLEM.Misc {
|
||||||
/// <returns>The passed instance, for chaining</returns>
|
/// <returns>The passed instance, for chaining</returns>
|
||||||
public SoundEffectInstance Add(SoundEffectInstance instance, Action<SoundEffectInstance> onStopped = null, AudioEmitter emitter = null) {
|
public SoundEffectInstance Add(SoundEffectInstance instance, Action<SoundEffectInstance> onStopped = null, AudioEmitter emitter = null) {
|
||||||
var entry = new Entry(instance, onStopped, emitter);
|
var entry = new Entry(instance, onStopped, emitter);
|
||||||
entry.TryApply3D(this.listeners);
|
|
||||||
this.playingSounds.Add(entry);
|
this.playingSounds.Add(entry);
|
||||||
instance.Play();
|
instance.Play();
|
||||||
|
entry.TryApply3D(this.listeners);
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue