public int SetPositions(DsLong pCurrent, AMSeekingSeekingFlags dwCurrentFlags, DsLong pStop, AMSeekingSeekingFlags dwStopFlags)
        {
            if (m_pUnknown == IntPtr.Zero) return E_NOINTERFACE;

            SetPositionsProc _Proc = GetProcDelegate<SetPositionsProc>(14);

            if (_Proc == null) return E_UNEXPECTED;

            return (HRESULT)_Proc(
                        m_pUnknown,
                        pCurrent, dwCurrentFlags, pStop, dwStopFlags
                        );
        }
        public int SetMediaTime(DsLong pTimeStart, DsLong pTimeEnd)
        {
            if (m_pUnknown == IntPtr.Zero) return E_NOINTERFACE;

            SetTimeProc _Proc = GetProcDelegate<SetTimeProc>(18);

            if (_Proc == null) return E_UNEXPECTED;

            return (HRESULT)_Proc(
                        m_pUnknown,
                        pTimeStart, pTimeEnd
                        );
        }
 public int StopAt(DsLong ptStop, bool bSendExtra, int dwCookie)
 {
     lock (_pinLock)
     {
         if (ptStop != null && ptStop != MAX_LONG)
         {
             _stopAt = ptStop;
             _shouldFlush = bSendExtra;
             _stopCookie = dwCookie;
         }
         else
         {
             _stopAt = -1;
             _shouldFlush = false;
             _stopCookie = 0;
         }
     }
     return NOERROR;
 }
 public int StartAt(DsLong ptStart, int dwCookie)
 {
     lock (_pinLock)
     {
         if (ptStart != null && ptStart != MAX_LONG)
         {
             _startAt = ptStart;
             _startCookie = dwCookie;
         }
         else
         {
             _startAt = -1;
             _startCookie = 0;
         }
     }
     return NOERROR;
 }
Exemple #5
0
 public int StartAt(DsLong ptStart, int dwCookie)
 {
     lock (m_csPinLock)
     {
         if (ptStart != null && ptStart != MAX_LONG)
         {
             m_rtStartAt = ptStart;
             m_dwStartCookie = dwCookie;
         }
         else
         {
             m_rtStartAt = -1;
             m_dwStartCookie = 0;
         }
     }
     return NOERROR;
 }
Exemple #6
0
 public int StopAt(DsLong ptStop, bool bSendExtra, int dwCookie)
 {
     lock (m_csPinLock)
     {
         if (ptStop != null && ptStop != MAX_LONG)
         {
             m_rtStopAt = ptStop;
             m_bShouldFlush = bSendExtra;
             m_dwStopCookie = dwCookie;
         }
         else
         {
             m_rtStopAt = -1;
             m_bShouldFlush = false;
             m_dwStopCookie = 0;
         }
     }
     return NOERROR;
 }