Rémi Bernon : mmdevapi/tests: Check that GetMixFormat returns an IEEE_FLOAT format.
Module: wine Branch: master Commit: 32ee835d3cb3374fa3f9e0bde430d6580153d7a7 URL: https://source.winehq.org/git/wine.git/?a=commit;h=32ee835d3cb3374fa3f9e0bde... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Mon Dec 20 17:16:36 2021 +0100 mmdevapi/tests: Check that GetMixFormat returns an IEEE_FLOAT format. And that a corresponding PCM format is supported. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mmdevapi/tests/render.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/mmdevapi/tests/render.c b/dlls/mmdevapi/tests/render.c index 495c1c6f496..6b77edc569e 100644 --- a/dlls/mmdevapi/tests/render.c +++ b/dlls/mmdevapi/tests/render.c @@ -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);
participants (1)
-
Alexandre Julliard