Skip to content

Commit 5a66978

Browse files
committed
Add back global start time tolerance
1 parent 5b64248 commit 5a66978

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Source/Processors/Synchronizer/Synchronizer.cpp

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,21 @@ void SyncStream::syncWith (const SyncStream* mainStream)
218218
{
219219
actualSampleRate = estimatedActualSampleRate;
220220

221-
if (! isSynchronized)
222-
221+
if (std::abs(estimatedGlobalStartTime) < 1.0)
223222
{
224-
globalStartTime = estimatedGlobalStartTime;
225-
isSynchronized = true;
223+
if (! isSynchronized)
224+
225+
{
226+
globalStartTime = estimatedGlobalStartTime;
227+
isSynchronized = true;
228+
}
226229
}
230+
else
231+
{
232+
//LOGD ("Estimated global start time of ", estimatedGlobalStartTime, " is out of bounds. Ignoring.");
233+
}
234+
235+
227236
}
228237
else
229238
{

0 commit comments

Comments
 (0)