diff options
| author | Michael <[email protected]> | 2017-02-03 19:44:01 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-03 19:44:01 -0500 |
| commit | 318fef283e57221349eb6412db63d63399f4fb86 (patch) | |
| tree | fb5850eebc36800909516cc09f2ca89631f478fd /ShiftOS_TheReturn/AudioManager.cs | |
| parent | 7edc0f10bb79453fdc3bf885cbd21be40f7839b5 (diff) | |
| download | shiftos_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.cs | 8 |
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 |
