Methinks I fixed audio... but I'm not sure..
This commit is contained in:
parent
55f754292d
commit
a8547db07c
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue