Andrew Eikum : mmdevapi/tests: Use discontinuity flag to detect broken win7 behavior.
Alexandre Julliard
julliard at winehq.org
Sun Oct 27 15:06:17 CDT 2019
Module: wine
Branch: master
Commit: 90f53193ffaccd6b31e34790f2e9c98e06a83225
URL: https://source.winehq.org/git/wine.git/?a=commit;h=90f53193ffaccd6b31e34790f2e9c98e06a83225
Author: Andrew Eikum <aeikum at codeweavers.com>
Date: Thu Oct 24 11:28:22 2019 -0500
mmdevapi/tests: Use discontinuity flag to detect broken win7 behavior.
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 732776c401..253ba3c762 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){
More information about the wine-cvs
mailing list