Add time debug info. Fix sleep duration for audio sync.

This commit is contained in:
2022-11-12 17:02:21 +08:00
parent a47faf0049
commit 252853f4d4
2 changed files with 16 additions and 2 deletions

View File

@@ -194,6 +194,13 @@ namespace Cryville.Crtr {
}
}
}
public double GetTimestampAverage() {
double result = 0;
foreach (var src in _sproxies.Keys) {
result += src.Handler.GetCurrentTimestamp() - _timeOrigins[src.Handler];
}
return result / _sproxies.Count;
}
#endregion
}