From 4ab59653087a05a575a1ebd7d7b152db21e5ceb3 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sat, 10 Mar 2012 19:04:14 +0100 Subject: [PATCH] reactivated sync timer --- Vocaluxe/Lib/Sound/CPortAudioPlay.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Lib/Sound/CPortAudioPlay.cs b/Vocaluxe/Lib/Sound/CPortAudioPlay.cs index c473e748..ad2122f0 100644 --- a/Vocaluxe/Lib/Sound/CPortAudioPlay.cs +++ b/Vocaluxe/Lib/Sound/CPortAudioPlay.cs @@ -489,7 +489,7 @@ namespace Vocaluxe.Lib.Sound if (Finished) _SyncTimer.Pause(); - return _CurrentTime; // _SyncTimer.Time; + return _SyncTimer.Time; } } } @@ -843,7 +843,7 @@ namespace Vocaluxe.Lib.Sound float latency = buf.Length / _BytesPerSecond + CConfig.AudioLatency/1000f; float time = _TimeCode - _data.BytesNotRead / _BytesPerSecond - latency; - _CurrentTime = time; // _SyncTimer.Update(time); + _CurrentTime = _SyncTimer.Update(time); } try