Rediger

Del via


EC_SAMPLE_LATENCY

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Specifies how far behind schedule a component is for processing samples.

Parameters

lParam1

(const REFERENCE_TIME*) How far behind the component is, in 100-nanosecond units. If this value is positive, the component is behind schedule. If this value is negative, the component is ahead of schedule.

lParam2

Zero.

Default Action

None.

Remarks

A custom presenter for the Enhanced Video Renderer (EVR) filter can send this message to the EVR, to notify the EVR whether the presenter is behind schedule or ahead of schedule.

The simplest way to calculate lParam1 is: QPC now QPC target, where QPC now is the clock time now, and QPC target is the presentation time.

Requirements

Requirement Value
Header
Dshow.h

See also

Event Notification Codes

How to Write an EVR Presenter