Commit 6ebf1396 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

dmusic: Add master clock tests.

parent 12d11833
...@@ -58,6 +58,8 @@ static void test_dmusic(void) ...@@ -58,6 +58,8 @@ static void test_dmusic(void)
DMUS_PORTPARAMS port_params; DMUS_PORTPARAMS port_params;
IDirectMusicPort *port = NULL; IDirectMusicPort *port = NULL;
DMUS_CLOCKINFO clock_info; DMUS_CLOCKINFO clock_info;
GUID guid_clock;
IReferenceClock *clock = NULL;
hr = CoCreateInstance(&CLSID_DirectMusic, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusic, (LPVOID*)&dmusic); hr = CoCreateInstance(&CLSID_DirectMusic, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusic, (LPVOID*)&dmusic);
if (hr != S_OK) if (hr != S_OK)
...@@ -66,6 +68,13 @@ static void test_dmusic(void) ...@@ -66,6 +68,13 @@ static void test_dmusic(void)
return; return;
} }
hr = IDirectMusic_GetMasterClock(dmusic, &guid_clock, &clock);
ok(hr == S_OK, "IDirectMusic_GetMasterClock returned: %x\n", hr);
ok(clock != NULL, "No clock returned\n");
trace(" guidPort = %s\n", debugstr_guid(&guid_clock));
if (clock)
IReferenceClock_Release(clock);
port_params.dwSize = sizeof(port_params); port_params.dwSize = sizeof(port_params);
port_params.dwValidParams = DMUS_PORTPARAMS_CHANNELGROUPS | DMUS_PORTPARAMS_AUDIOCHANNELS; port_params.dwValidParams = DMUS_PORTPARAMS_CHANNELGROUPS | DMUS_PORTPARAMS_AUDIOCHANNELS;
port_params.dwChannelGroups = 1; port_params.dwChannelGroups = 1;
......
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