[PATCH 2/2] mmdevapi/tests: Check that GetMixFormat returns an IEEE_FLOAT format.

Andrew Eikum aeikum at codeweavers.com
Tue Dec 21 09:20:55 CST 2021


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Mon, Dec 20, 2021 at 05:16:36PM +0100, Rémi Bernon wrote:
> And that a corresponding PCM format is supported.
> 
> Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
> ---
>  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);
> -- 
> 2.34.0
> 
> 



More information about the wine-devel mailing list