aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/AudioManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn/AudioManager.cs')
-rw-r--r--ShiftOS_TheReturn/AudioManager.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs
index d689cad..a636497 100644
--- a/ShiftOS_TheReturn/AudioManager.cs
+++ b/ShiftOS_TheReturn/AudioManager.cs
@@ -87,6 +87,7 @@ namespace ShiftOS.Engine
_out.Init(_reader);
_out.Volume = _provider.Volume;
_out.Play();
+ _out.PlaybackStopped += (o, a) => { PlayCompleted?.Invoke(); };
}
catch { }
}
@@ -107,6 +108,8 @@ namespace ShiftOS.Engine
ShiftOS.Engine.AudioManager.Play("snd.wav");
}
+
+ public static event Action PlayCompleted;
}
public interface IAudioProvider