aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/AudioManager.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-05-01 11:38:32 -0600
committerAShifter <[email protected]>2017-05-01 11:38:32 -0600
commitb842c73b04fb92d9ecaf3d8fcc2df6157c2e8652 (patch)
treeff4979daf8dfd7881899ade68903d757c6e828d4 /ShiftOS_TheReturn/AudioManager.cs
parent7293e2f07f99603c1f63826d705ce4179d70c663 (diff)
parent12490dec7deaa972cb29166095a7ef0c1f005541 (diff)
downloadshiftos_thereturn-b842c73b04fb92d9ecaf3d8fcc2df6157c2e8652.tar.gz
shiftos_thereturn-b842c73b04fb92d9ecaf3d8fcc2df6157c2e8652.tar.bz2
shiftos_thereturn-b842c73b04fb92d9ecaf3d8fcc2df6157c2e8652.zip
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
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