IDirectMusicPerformance::GetLatencyTime

The IDirectMusicPerformance::GetLatencyTime method retrieves the current latency time. If "now" is the time being heard from the speakers, "latency time" is "now" plus the time required to queue and render messages into the IDirectMusicPort. For an overview of this topic, see Timing.

HRESULT GetLatencyTime(
  REFERENCE_TIME * prtTime
);
 

Parameters

prtTime
Address of a variable to receive the current latency time.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method may return one of the following error values:

E_POINTER
DMUS_E_NO_MASTER_CLOCK

QuickInfo

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