IMFPresentationTimeSource interface (mfidl.h)

Provides the clock times for the presentation clock.

Inheritance

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

Methods

The IMFPresentationTimeSource interface has these methods.

 
IMFPresentationTimeSource::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 presentation 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

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also

IMFClock

Media Foundation Interfaces

Presentation Clock