aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/AudioManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-03 19:44:01 -0500
committerMichael <[email protected]>2017-02-03 19:44:01 -0500
commit318fef283e57221349eb6412db63d63399f4fb86 (patch)
treefb5850eebc36800909516cc09f2ca89631f478fd /ShiftOS_TheReturn/AudioManager.cs
parent7edc0f10bb79453fdc3bf885cbd21be40f7839b5 (diff)
downloadshiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.tar.gz
shiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.tar.bz2
shiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.zip
Fix crash handler
Diffstat (limited to 'ShiftOS_TheReturn/AudioManager.cs')
-rw-r--r--ShiftOS_TheReturn/AudioManager.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs
index 5923aa1..1ea4575 100644
--- a/ShiftOS_TheReturn/AudioManager.cs
+++ b/ShiftOS_TheReturn/AudioManager.cs
@@ -67,7 +67,13 @@ namespace ShiftOS.Engine
_out.Volume = volume;
}
-
+ internal static void Kill()
+ {
+ _running = false;
+ _out.Stop();
+ _out.Dispose();
+ _reader.Dispose();
+ }
}
public interface IAudioProvider