- May 14, 2008
- 3,558
- 434
- Home Country
- Germany
AW: Problems with dropping frames with EVR
gemx
seems to be correct:
But strange that when hnsSampleTime is not > 0 only 25 is used instead of 75 ? Shouldn't it be the same value?
gemx
seems to be correct:
Code:
if (hnsSampleTime > 0)
{
// wait for 3/4 sample time or 3/4 of frame duration depending on what is smaller<
delay = min((hnsSampleTime/100*75), (timePerFrame/100*75));
}
else
{
// workaround for unknown bugs
delay = timePerFrame/100*25;
}
But strange that when hnsSampleTime is not > 0 only 25 is used instead of 75 ? Shouldn't it be the same value?