Platform SDK: DirectX

IDirectMusicPort::GetLatencyClock

The IDirectMusicPort::GetLatencyClock method is used to get an IReferenceClock interface pointer to the port's latency clock. The latency clock specifies the nearest time in the future at which a message can be played on time. The latency clock is based on the DirectMusic master clock, which is set by using the IDirectMusic::SetMasterClock method.

HRESULT GetLatencyClock(
  IReferenceClock** ppClock
);

Parameters

ppClock
Address of a variable to receive the latency clock's IReferenceClock interface pointer.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return E_POINTER.

Remarks

In accordance with COM rules, GetLatencyClock increments the reference count of the returned interface. Therefore, the application must call Release on the IReferenceClock interface at some point.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusicc.h.

See Also

Latency and Bumper Time