mmdevapi: Add a few more render tests.

This commit is contained in:
Maarten Lankhorst 2010-03-17 22:06:47 +01:00 committed by Alexandre Julliard
parent 81c812ecba
commit 714ae4112a
1 changed files with 17 additions and 0 deletions

View File

@ -192,6 +192,14 @@ static void test_audioclient(IAudioClient *ac)
return;
}
hr = IAudioClient_GetStreamLatency(ac, NULL);
ok(hr == E_POINTER, "GetStreamLatency(NULL) call returns %08x\n", hr);
hr = IAudioClient_GetStreamLatency(ac, &t1);
ok(hr == S_OK, "Valid GetStreamLatency call returns %08x\n", hr);
trace("Returned latency: %u.%05u ms\n",
(UINT)(t1/10000), (UINT)(t1 % 10000));
hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, 0, pwfx, NULL);
ok(hr == AUDCLNT_E_ALREADY_INITIALIZED, "Calling Initialize twice returns %08x\n", hr);
@ -204,6 +212,15 @@ static void test_audioclient(IAudioClient *ac)
hr == HRESULT_FROM_WIN32(ERROR_BAD_PATHNAME) /* Some Vista */
, "SetEventHandle returns %08x\n", hr);
hr = IAudioClient_Reset(ac);
ok(hr == S_OK, "Reset on a resetted stream returns %08x\n", hr);
hr = IAudioClient_Stop(ac);
ok(hr == S_FALSE, "Stop on a stopped stream returns %08x\n", hr);
hr = IAudioClient_Start(ac);
ok(hr == S_OK, "Start on a stopped stream returns %08x\n", hr);
CloseHandle(handle);
CoTaskMemFree(pwfx);
}