[PATCH 2/4] mmdevapi/tests: Use discontinuity flag to detect broken win7 behavior
Andrew Eikum
aeikum at codeweavers.com
Thu Oct 24 11:28:22 CDT 2019
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
dlls/mmdevapi/tests/capture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mmdevapi/tests/capture.c b/dlls/mmdevapi/tests/capture.c
index 732776c4014..253ba3c762b 100644
--- a/dlls/mmdevapi/tests/capture.c
+++ b/dlls/mmdevapi/tests/capture.c
@@ -142,7 +142,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
ok(frames, "Amount of frames locked is 0!\n");
/* broken: some w7 machines return pad == 0 and DATA_DISCONTINUITY here,
* AUDCLNT_S_BUFFER_EMPTY above, yet pos == 1-2 * period rather than 0 */
- ok(pos == sum || broken(pos == period || pos == 2*period),
+ ok(pos == sum || broken(flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY),
"Position %u expected %u\n", (UINT)pos, sum);
sum = pos;
}else if (hr == AUDCLNT_S_BUFFER_EMPTY){
--
2.23.0
More information about the wine-devel
mailing list