Merge pull request #54 from brunzel/develop
bugfix: play a stream till it's really finished
This commit is contained in:
commit
5044248d0c
1 file changed
+3
-2
@@ -474,7 +474,7 @@ namespace Vocaluxe.Lib.Sound
|
||||
{
|
||||
lock (_LockData)
|
||||
{
|
||||
return _NoMoreData && _data.BytesNotRead == 0L;
|
||||
return _NoMoreData && _data.BytesNotRead == 0L && _SyncTimer.Time >= _Duration;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -877,7 +877,8 @@ namespace Vocaluxe.Lib.Sound
|
||||
float latency = buf.Length / _BytesPerSecond + CConfig.AudioLatency/1000f;
|
||||
float time = _TimeCode - _data.BytesNotRead / _BytesPerSecond - latency;
|
||||
|
||||
_CurrentTime = _SyncTimer.Update(time);
|
||||
if (!_NoMoreData)
|
||||
_CurrentTime = _SyncTimer.Update(time);
|
||||
}
|
||||
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user