new order in portaudio decoding loop

This commit is contained in:
Alexander Eckart committed 2012-03-10 09:29:12 +01:00
1 parent c6bb850e80
commit e842ef6a58
1 file changed
+12 -16
+12 -16
View File
@@ -676,21 +676,6 @@ namespace Vocaluxe.Lib.Sound
while (!_terminated) while (!_terminated)
{ {
if (EventDecode.WaitOne(10)) if (EventDecode.WaitOne(10))
{
if (_skip)
{
DoSkip();
_skip = false;
}
if (!_waiting)
{
DoDecode();
Update();
}
}
if (!_terminated)
{ {
lock (MutexSyncSignals) lock (MutexSyncSignals)
{ {
@@ -706,8 +691,19 @@ namespace Vocaluxe.Lib.Sound
_Start = _SetStart; _Start = _SetStart;
_Loop = _SetLoop; _Loop = _SetLoop;
} }
}
if (_skip)
{
DoSkip();
_skip = false;
}
if (!_waiting)
{
DoDecode();
Update();
}
}
} }
DoFree(); DoFree();