Menu

Get Jitter info on playback

Kejames
2010-02-23
2012-10-29
  • Kejames

    Kejames - 2010-02-23

    Hello everyone,
    Is there any way that i can get Jitter on playback ?
    I reference the DxPlay sample code and try to use IQualProp::get_Jitter,But
    isn't work .
    My sample code as below :

    IQualProp m_iQualProp = null;
    private void SetupGraph(Control hWin, string FileName)
    {
    .......
    m_icgb2.FindInterface(null , null , RendererFilter , typeof(IQualProp).GUID ,
    out obj);
    Marshal.ThrowExceptionForHR(hr);
    m_iQualProp = obj as IQualProp;
    .....
    }
    int ISampleGrabberCB.BufferCB( double SampleTime , IntPtr pBuffer , int
    BufferLen )
    {
    int iJitter = 0 , iAvfFrameRate = 0 , iDevSyncOffset = 0;
    m_iQualProp.get_Jitter(out iJitter);
    m_iQualProp.get_AvgFrameRate(out iAvfFrameRate);
    m_iQualProp.get_DevSyncOffset(out iDevSyncOffset);
    }

    BR.
    James

     
  • snarfle

    snarfle - 2010-02-23

    Are we supposed to guess about what part doesn't work? Or are you going to
    tell us?

    Looking at this code, you aren't checking the return code from any of these
    methods: FindInterface, get_Jitter, get_AvgFrameRate, get_DevSyncOffset. If
    they are failing, perhaps they are telling you why, but you aren't looking.

    You also don't tell use whether the BufferCB routine is even being called.
    Since the DxPlay sample doesn't use the SG, are you sure you have hooked it up
    correctly?

    It's hard to diagnose problems when the only info you have is "it doesn't
    work."

     

Log in to post a comment.