for the sake of accuracy, increased the frequency at which samples are checked when buffering is enabled

This commit is contained in:
jp9000 2013-04-06 12:21:45 -07:00
parent 43493aa8d1
commit 3b08f98fe0

View File

@ -882,7 +882,7 @@ DWORD DeviceSource::SampleThread(DeviceSource *source)
bool bFirstFrame = true; bool bFirstFrame = true;
bool bFirstDelay = true; bool bFirstDelay = true;
while (WaitForSingleObject(source->hStopSampleEvent, 4) == WAIT_TIMEOUT) { while (WaitForSingleObject(source->hStopSampleEvent, 2) == WAIT_TIMEOUT) {
LONGLONG t = GetQPCTime100NS(); LONGLONG t = GetQPCTime100NS();
LONGLONG delta = t-lastTime; LONGLONG delta = t-lastTime;
lastTime = t; lastTime = t;