IMediaObjectInPlace::GetLatency

The GetLatency method retrieves the latency introduced by this DMO.

Syntax

HRESULT GetLatency(
    REFERENCE_TIME *pLatencyTime
);

Parameters

pLatencyTime

[out] Pointer to a variable that receives the latency, in 100-nanosecond units.

Return Value

Returns S_OK if successful. Otherwise, returns an HRESULT value indicating the cause of the error.

Remarks

This method returns the average time required to process each buffer. This value usually depends on factors in the run-time environment, such as the processor speed and the CPU load. One possible way to implement this method is for the DMO to keep a running average based on historical data.

Requirements

  Header: Declared in Mediaobj.h; include Dmo.h
  Library: Dmoguids.lib.

See Also

© 2004 Microsoft Corporation. All rights reserved.