Partager via


IMediaObjectInPlace::GetLatency

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method retrieves the latency introduced by the 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, it 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 dmo.h
Library Dmoguid.lib
Windows Embedded CE Windows CE .NET 4.1 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IMediaObjectInPlace