Microsoft DirectX 8.0 (C++) |
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 );
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.