Microsoft DirectX 8.1 (C++) |
Returns the media stream's duration.
Syntax
HRESULT GetDuration(
STREAM_TIME *pDuration
);
Parameters
pDuration
[out] Pointer to a STREAM_TIME value that will contain the media duration.
Return Value
Returns one of the following values.
Return code | Description |
E_POINTER | The value of pDuration is invalid. |
MS_E_WRITESTREAM | The media stream is writable and therefore has no duration. |
S_FALSE | Stream contains live data or this method couldn't determine the duration. On return, this method sets pDuration to zero. |
S_OK | Stream contains recorded media. On return, pDuration contains duration of media. |
See Also