Microsoft DirectX 9.0 |
The GetMediaTime method retrieves the time stamps on the current sample.
Syntax
HRESULT GetMediaTime(
LONGLONG *pStartTime,
LONGLONG *pEndTime
);
Parameters
pStartTime
Pointer to a variable that receives the start time, in units of the current time format.
pEndTime
Pointer to a variable that receives the end time, in units of the current time format. Can be NULL.
Return Value
Returns an HRESULT value. Possible values include those listed in the following table.
Value | Description |
S_OK | Success. |
E_INVALIDARG | Conversion to this format is not supported. |
E_POINTER | NULL pointer argument. |
Remarks
This method overrides the CPosPassThru::GetMediaTime method. The time-stamp values are converted to the current time format by calling the CPosPassThru::ConvertTimeFormat method.
See Also