Commit 0eaf5c15 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

dmusic: Add tests to enumerate master clocks.

parent 415d7a44
......@@ -47,6 +47,7 @@ static void test_dmusic(void)
DMUS_PORTCAPS port_caps;
DMUS_PORTPARAMS port_params;
IDirectMusicPort *port = NULL;
DMUS_CLOCKINFO clock_info;
hr = CoCreateInstance(&CLSID_DirectMusic, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusic, (LPVOID*)&dmusic);
if (hr != S_OK)
......@@ -99,6 +100,18 @@ static void test_dmusic(void)
index++;
}
index = 0;
clock_info.dwSize = sizeof(clock_info);
while (IDirectMusic_EnumMasterClock(dmusic, index, &clock_info) == S_OK)
{
ok(clock_info.dwSize == sizeof(clock_info), "DMUS_CLOCKINFO dwSize member is wrong (%u)\n", clock_info.dwSize);
trace("Clock %u:\n", index);
trace(" ctType = %u\n", clock_info.ctType);
trace(" guidClock = %s\n", debugstr_guid(&clock_info.guidClock));
trace(" wszDescription = %s\n", wine_dbgstr_w(clock_info.wszDescription));
index++;
}
if (port)
IDirectMusicPort_Release(port);
IDirectMusic_Release(dmusic);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment