new order in portaudio decoding loop
This commit is contained in:
1 parent
c6bb850e80
commit
e842ef6a58
1 file changed
+11
-15
@@ -676,21 +676,6 @@ namespace Vocaluxe.Lib.Sound
|
||||
while (!_terminated)
|
||||
{
|
||||
if (EventDecode.WaitOne(10))
|
||||
{
|
||||
if (_skip)
|
||||
{
|
||||
DoSkip();
|
||||
_skip = false;
|
||||
}
|
||||
|
||||
if (!_waiting)
|
||||
{
|
||||
DoDecode();
|
||||
Update();
|
||||
}
|
||||
}
|
||||
|
||||
if (!_terminated)
|
||||
{
|
||||
lock (MutexSyncSignals)
|
||||
{
|
||||
@@ -706,8 +691,19 @@ namespace Vocaluxe.Lib.Sound
|
||||
_Start = _SetStart;
|
||||
_Loop = _SetLoop;
|
||||
}
|
||||
|
||||
if (_skip)
|
||||
{
|
||||
DoSkip();
|
||||
_skip = false;
|
||||
}
|
||||
|
||||
if (!_waiting)
|
||||
{
|
||||
DoDecode();
|
||||
Update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DoFree();
|
||||
|
||||
Reference in new issue
Block a user