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