Skip to content
Snippets Groups Projects
Commit 32ee835d authored by Rémi Bernon's avatar Rémi Bernon :speech_balloon: Committed by Alexandre Julliard
Browse files

mmdevapi/tests: Check that GetMixFormat returns an IEEE_FLOAT format.


And that a corresponding PCM format is supported.

Signed-off-by: default avatarRémi Bernon <rbernon@codeweavers.com>
Signed-off-by: default avatarAndrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 0053a686
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,14 @@ static void test_audioclient(void)
IsEqualGUID(&pwfxe->SubFormat, &KSDATAFORMAT_SUBTYPE_PCM)?"PCM":
(IsEqualGUID(&pwfxe->SubFormat,
&KSDATAFORMAT_SUBTYPE_IEEE_FLOAT)?"FLOAT":"Other"));
ok(IsEqualGUID(&pwfxe->SubFormat, &KSDATAFORMAT_SUBTYPE_IEEE_FLOAT),
"got format %s\n", debugstr_guid(&pwfxe->SubFormat));
pwfxe->SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
hr = IAudioClient_IsFormatSupported(ac, AUDCLNT_SHAREMODE_SHARED, pwfx, &pwfx2);
ok(hr == S_OK, "Valid IsFormatSupported(Shared) call returns %08x\n", hr);
ok(pwfx2 == NULL, "pwfx2 is non-null\n");
CoTaskMemFree(pwfx2);
}
hr = IAudioClient_IsFormatSupported(ac, AUDCLNT_SHAREMODE_SHARED, pwfx, &pwfx2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment