Added Temporal Sync functionality

This commit is contained in:
Christopher Remde
2020-06-10 13:59:09 +02:00
parent 4a4f9ae0ad
commit da2c304db8
9 changed files with 338 additions and 217 deletions
+18
View File
@@ -232,6 +232,19 @@ namespace KinectServer
}
}
public void SendTemporalSyncData()
{
lock (oClientSocketLock)
{
lClientSockets[0].SendTemporalSyncStatus(true, false);
for (int i = 1; i < lClientSockets.Count; i++)
{
lClientSockets[i].SendTemporalSyncStatus(false, true);
}
}
}
public bool GetStoredFrame(List<List<byte>> lFramesRGB, List<List<Single>> lFramesVerts)
{
bool bNoMoreStoredFrames;
@@ -436,6 +449,11 @@ namespace KinectServer
lClientSockets[i].bLatestFrameReceived = true;
}
else if (buffer[0] == 4)
{
lClientSockets[i].ReceiveTemporalSyncStatus();
}
buffer = lClientSockets[i].Receive(1);
}
}