aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/AudioManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-21 08:26:30 -0400
committerMichael <[email protected]>2017-06-21 08:26:30 -0400
commita8547db07c321ae7c42e260ce99c8fc5e8cfb66f (patch)
tree73f3bd43ed5108f48a8a3a246b8c6b180741b853 /ShiftOS_TheReturn/AudioManager.cs
parent55f754292d147a23bcd9c23b2479f1d9c2bac799 (diff)
downloadshiftos_thereturn-a8547db07c321ae7c42e260ce99c8fc5e8cfb66f.tar.gz
shiftos_thereturn-a8547db07c321ae7c42e260ce99c8fc5e8cfb66f.tar.bz2
shiftos_thereturn-a8547db07c321ae7c42e260ce99c8fc5e8cfb66f.zip
Methinks I fixed audio... but I'm not sure..
Diffstat (limited to 'ShiftOS_TheReturn/AudioManager.cs')
-rw-r--r--ShiftOS_TheReturn/AudioManager.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs
index 0950b55..85e1371 100644
--- a/ShiftOS_TheReturn/AudioManager.cs
+++ b/ShiftOS_TheReturn/AudioManager.cs
@@ -125,10 +125,14 @@ namespace ShiftOS.Engine
}
if (play)
{
- while(_out.PlaybackState == PlaybackState.Playing)
+ try
{
- Thread.Sleep(10);
+ while (_out.PlaybackState == PlaybackState.Playing)
+ {
+ Thread.Sleep(10);
+ }
}
+ catch { }
ShiftOS.Engine.AudioManager.Stop();
_out = new WaveOut();
var mp3 = new WaveFileReader(str);