Methinks I fixed audio... but I'm not sure..

This commit is contained in:
Michael 2017-06-21 08:26:30 -04:00
parent 55f754292d
commit a8547db07c

View file

@ -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);