Export (0) Print
Expand All

IMFPresentationTimeSource interface

Provides the clock times for the presentation clock.

Members

The IMFPresentationTimeSource interface inherits from IMFClock. IMFPresentationTimeSource also has these types of members:

Methods

The IMFPresentationTimeSource interface has these methods.

MethodDescription
GetUnderlyingClock

Retrieves the underlying clock that the presentation time source uses to generate its clock times.

 

Remarks

This interface is implemented by presentation time sources. A presentation time source is an object that provides the clock time for the presentation clock. For example, the audio renderer is a presentation time source. The rate at which the audio renderer consumes audio samples determines the clock time. If the audio format is 44100 samples per second, the audio renderer will report that one second has passed for every 44100 audio samples it plays. In this case, the timing is provided by the sound card.

To set the presentation time source on the presentation clock, call IMFPresentationClock::SetTimeSource with a pointer to the time source's IMFPresentationTimeSource interface.

A presentation time source must also implement the IMFClockStateSink interface. The presentaton clock uses this interface to notify the time source when the clock state changes.

Media Foundation provides a presentation time source that is based on the system clock. To create this object, call the MFCreateSystemTimeSource function.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

Media Foundation Interfaces
Presentation Clock

 

 

Community Additions

ADD
Show:
© 2014 Microsoft