mirror of
https://github.com/reactos/reactos.git
synced 2025-06-27 10:09:46 +00:00
[MMDEVAPI_WINETEST] Sync with Wine 3.0. CORE-14225
This commit is contained in:
parent
a3eb2d3811
commit
ae5f2352bc
2 changed files with 6 additions and 11 deletions
|
@ -556,8 +556,7 @@ static void test_audioclient(void)
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
{
|
{
|
||||||
skip("Cannot initialize %08x, remainder of tests is useless\n", hr);
|
skip("Cannot initialize %08x, remainder of tests is useless\n", hr);
|
||||||
CoTaskMemFree(pwfx);
|
goto cleanup;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = IAudioClient_GetStreamLatency(ac, NULL);
|
hr = IAudioClient_GetStreamLatency(ac, NULL);
|
||||||
|
@ -592,6 +591,7 @@ static void test_audioclient(void)
|
||||||
|
|
||||||
test_capture(ac, handle, pwfx);
|
test_capture(ac, handle, pwfx);
|
||||||
|
|
||||||
|
cleanup:
|
||||||
IAudioClient_Release(ac);
|
IAudioClient_Release(ac);
|
||||||
CloseHandle(handle);
|
CloseHandle(handle);
|
||||||
CoTaskMemFree(pwfx);
|
CoTaskMemFree(pwfx);
|
||||||
|
|
|
@ -320,11 +320,7 @@ static void test_audioclient(void)
|
||||||
hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, 0, pwfx, NULL);
|
hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, 0, pwfx, NULL);
|
||||||
ok(hr == S_OK, "Valid Initialize returns %08x\n", hr);
|
ok(hr == S_OK, "Valid Initialize returns %08x\n", hr);
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
{
|
goto cleanup;
|
||||||
IAudioClient_Release(ac);
|
|
||||||
CoTaskMemFree(pwfx);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr = IAudioClient_GetStreamLatency(ac, NULL);
|
hr = IAudioClient_GetStreamLatency(ac, NULL);
|
||||||
ok(hr == E_POINTER, "GetStreamLatency(NULL) call returns %08x\n", hr);
|
ok(hr == E_POINTER, "GetStreamLatency(NULL) call returns %08x\n", hr);
|
||||||
|
@ -369,8 +365,8 @@ static void test_audioclient(void)
|
||||||
hr = IAudioClient_Start(ac);
|
hr = IAudioClient_Start(ac);
|
||||||
ok(hr == AUDCLNT_E_NOT_STOPPED, "Start twice returns %08x\n", hr);
|
ok(hr == AUDCLNT_E_NOT_STOPPED, "Start twice returns %08x\n", hr);
|
||||||
|
|
||||||
|
cleanup:
|
||||||
IAudioClient_Release(ac);
|
IAudioClient_Release(ac);
|
||||||
|
|
||||||
CloseHandle(handle);
|
CloseHandle(handle);
|
||||||
CoTaskMemFree(pwfx);
|
CoTaskMemFree(pwfx);
|
||||||
}
|
}
|
||||||
|
@ -949,9 +945,8 @@ static void test_clock(int share)
|
||||||
ok(gbsize == bufsize,
|
ok(gbsize == bufsize,
|
||||||
"BufferSize %u at rate %u\n", gbsize, pwfx->nSamplesPerSec);
|
"BufferSize %u at rate %u\n", gbsize, pwfx->nSamplesPerSec);
|
||||||
else
|
else
|
||||||
todo_wine
|
ok(gbsize == parts * fragment || gbsize == MulDiv(bufsize, 1, 1024) * 1024,
|
||||||
ok(gbsize == parts * fragment || gbsize == MulDiv(bufsize, 1, 1024) * 1024,
|
"BufferSize %u misfits fragment size %u at rate %u\n", gbsize, fragment, pwfx->nSamplesPerSec);
|
||||||
"BufferSize %u misfits fragment size %u at rate %u\n", gbsize, fragment, pwfx->nSamplesPerSec);
|
|
||||||
|
|
||||||
/* In shared mode, GetCurrentPadding decreases in multiples of
|
/* In shared mode, GetCurrentPadding decreases in multiples of
|
||||||
* fragment size (i.e. updated only at period ticks), whereas
|
* fragment size (i.e. updated only at period ticks), whereas
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue