Platform SDK: DirectX |
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 );
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.
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.