Microsoft DirectX 8.0 (C++) |
Enumerates the clocks that DirectMusic can use as the master clock. Each time it is called, this method retrieves information about a single clock.
HRESULT EnumMasterClock( DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo );
If the method succeeds, the return value is S_OK, or S_FALSE if there is no clock with that index number.
If it fails, the method can return one of the following error values:
E_INVALIDARG |
E_NOINTERFACE |
E_POINTER |
Applications should not rely on or store the index number of a clock. Rebooting or adding and removing hardware can cause the index number of a clock to change.
Header: Declared in dmusicc.h.
IDirectMusic8::SetMasterClock, IDirectMusic8::GetMasterClock