Alexandre Julliard pushed to branch master at wine / wine
Commits: 5f793f78 by Giovanni Mascellani at 2025-10-15T11:42:03+02:00 mmdevapi/tests: Iterate independently on sampling rates, channel counts and sample formats when rendering.
- - - - - 5ec27192 by Giovanni Mascellani at 2025-10-15T11:42:03+02:00 mmdevapi/tests: Tweak the lists of audio format to test.
Trying to balance between coverage and running time. Especially on macOS it takes a lot of time to initialize and deinitialize the audio system over and over.
- - - - - 5b9edf29 by Giovanni Mascellani at 2025-10-15T11:42:07+02:00 mmdevapi/tests: Simplify checking IsFormatSupported() result when rendering.
- - - - - 4ecfb4de by Giovanni Mascellani at 2025-10-15T11:42:07+02:00 mmdevapi/tests: Check that Initialize() matches IsFormatSupported() when rendering.
- - - - - f899efc3 by Giovanni Mascellani at 2025-10-15T11:42:07+02:00 mmdevapi/tests: Test flag AUDCLNT_STREAMFLAGS_RATEADJUST when rendering.
- - - - - 8171dd5e by Giovanni Mascellani at 2025-10-15T11:42:07+02:00 mmdevapi/tests: Test flag AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM when rendering.
- - - - - 716a4af8 by Giovanni Mascellani at 2025-10-15T11:42:07+02:00 mmdevapi/tests: Test extensible wave formats when rendering.
This adds a few more cases in which initializing in exclusive mode can fail even when IsFormatSupported() returned positively. To avoid making the broken() conditions overly complicated I remove the side conditions, which are probably not very useful and depend on the driver anyway.
Also, testing configurations with more than two channels somehow alters the state of the device in a way that is not restored even after releasing the IMMDevice object and creating it again. Specifically, GetChannelVolume() will return more then two channels, even if the audio client is initialized with just two channels. To avoid those failures the format tests are moved to the end.
- - - - -
1 changed file:
- dlls/mmdevapi/tests/render.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/120db075b5e8863c1ded907e38a886...