다음을 통해 공유


IStreamSample::SetSampleTimes (Windows CE 5.0)

Send Feedback

This method sets the current sample's start and end times.

You can call this method prior to updating the sample.

HRESULT SetSampleTimes(const STREAM_TIME* pStartTime,const STREAM_TIME* pEndTime);

Parameters

  • pStartTime
    [in] Pointer to a STREAM_TIME value that contains the sample's new start time.
  • pEndTime
    [in] Pointer to a STREAM_TIME value that contains the sample's new end time.

Return Values

Returns S_OK if successful or E_POINTER if one of the parameters is NULL.

Remarks

For streams that have a clock, the times must be relative to the stream's current time.

If the stream does not have a clock, the times should be relative to the media.

This method applies only to writable streams.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.

See Also

IStreamSample Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.