|Microsoft DirectX 9.0|
The GetLatencyClock method retrieves 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 IDirectMusic8::SetMasterClock method.
HRESULT GetLatencyClock( IReferenceClock** ppClock );
Address of a variable that receives the latency clock's IReferenceClock interface pointer.
If the method succeeds, the return value is S_OK.
If it fails, the method can return E_POINTER.
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.
Header: Declared in dmusicc.h.