new order in portaudio decoding loop
This commit is contained in:
1 parent
c6bb850e80
commit
e842ef6a58
1 file changed
+12
-16
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user