CSourcePosition Class Reference

#include <ctlutil.h>

Inheritance diagram for CSourcePosition:

CMediaPosition CUnknown CBaseObject

List of all members.

Public Member Functions

 CSourcePosition (const TCHAR *, LPUNKNOWN, HRESULT *, CCritSec *)
STDMETHODIMP get_Duration (REFTIME *plength)
STDMETHODIMP put_CurrentPosition (REFTIME llTime)
STDMETHODIMP get_StopTime (REFTIME *pllTime)
STDMETHODIMP put_StopTime (REFTIME llTime)
STDMETHODIMP get_PrerollTime (REFTIME *pllTime)
STDMETHODIMP put_PrerollTime (REFTIME llTime)
STDMETHODIMP get_Rate (double *pdRate)
STDMETHODIMP put_Rate (double dRate)
STDMETHODIMP CanSeekForward (LONG *pCanSeekForward)
STDMETHODIMP CanSeekBackward (LONG *pCanSeekBackward)
STDMETHODIMP get_CurrentPosition (REFTIME *pllTime)

Protected Member Functions

virtual HRESULT ChangeStart () PURE
virtual HRESULT ChangeStop () PURE
virtual HRESULT ChangeRate () PURE

Protected Attributes

COARefTime m_Duration
COARefTime m_Start
COARefTime m_Stop
double m_Rate
CCritSecm_pLock


Detailed Description

Definition at line 470 of file ctlutil.h.


Constructor & Destructor Documentation

CSourcePosition::CSourcePosition ( const TCHAR pName,
LPUNKNOWN  pUnk,
HRESULT *  phr,
CCritSec pLock 
)

Definition at line 1177 of file ctlutil.cpp.

References m_Rate, and m_Stop.


Member Function Documentation

STDMETHODIMP CSourcePosition::get_Duration ( REFTIME *  plength  ) 

Definition at line 1190 of file ctlutil.cpp.

References CheckPointer, m_Duration, m_pLock, S_OK, and ValidateReadWritePtr.

STDMETHODIMP CSourcePosition::put_CurrentPosition ( REFTIME  llTime  ) 

Definition at line 1201 of file ctlutil.cpp.

References ChangeStart(), CCritSec::Lock(), m_pLock, m_Start, and CCritSec::Unlock().

STDMETHODIMP CSourcePosition::get_StopTime ( REFTIME *  pllTime  ) 

Definition at line 1211 of file ctlutil.cpp.

References CheckPointer, m_pLock, m_Stop, S_OK, and ValidateReadWritePtr.

STDMETHODIMP CSourcePosition::put_StopTime ( REFTIME  llTime  ) 

Definition at line 1222 of file ctlutil.cpp.

References ChangeStop(), CCritSec::Lock(), m_pLock, m_Stop, and CCritSec::Unlock().

STDMETHODIMP CSourcePosition::get_PrerollTime ( REFTIME *  pllTime  ) 

Definition at line 1232 of file ctlutil.cpp.

References CheckPointer, and ValidateReadWritePtr.

STDMETHODIMP CSourcePosition::put_PrerollTime ( REFTIME  llTime  ) 

Definition at line 1240 of file ctlutil.cpp.

STDMETHODIMP CSourcePosition::get_Rate ( double *  pdRate  ) 

Definition at line 1246 of file ctlutil.cpp.

References CheckPointer, m_pLock, m_Rate, S_OK, and ValidateReadWritePtr.

STDMETHODIMP CSourcePosition::put_Rate ( double  dRate  ) 

Definition at line 1257 of file ctlutil.cpp.

References ChangeRate(), CCritSec::Lock(), m_pLock, m_Rate, and CCritSec::Unlock().

STDMETHODIMP CSourcePosition::CanSeekForward ( LONG pCanSeekForward  ) 

Definition at line 1267 of file ctlutil.cpp.

References CheckPointer, OATRUE, and S_OK.

STDMETHODIMP CSourcePosition::CanSeekBackward ( LONG pCanSeekBackward  ) 

Definition at line 1275 of file ctlutil.cpp.

References CheckPointer, OATRUE, and S_OK.

STDMETHODIMP CSourcePosition::get_CurrentPosition ( REFTIME *  pllTime  )  [inline]

Definition at line 489 of file ctlutil.h.

virtual HRESULT CSourcePosition::ChangeStart (  )  [protected, virtual]

Referenced by put_CurrentPosition().

virtual HRESULT CSourcePosition::ChangeStop (  )  [protected, virtual]

Referenced by put_StopTime().

virtual HRESULT CSourcePosition::ChangeRate (  )  [protected, virtual]

Referenced by put_Rate().


Member Data Documentation

Definition at line 500 of file ctlutil.h.

Referenced by get_Duration().

Definition at line 501 of file ctlutil.h.

Referenced by put_CurrentPosition().

Definition at line 502 of file ctlutil.h.

Referenced by CSourcePosition(), get_StopTime(), and put_StopTime().

double CSourcePosition::m_Rate [protected]

Definition at line 503 of file ctlutil.h.

Referenced by CSourcePosition(), get_Rate(), and put_Rate().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:54 2008 by  doxygen 1.5.6