Commit 90f53193 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

mmdevapi/tests: Use discontinuity flag to detect broken win7 behavior.

parent ba340e74
...@@ -142,7 +142,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx) ...@@ -142,7 +142,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
ok(frames, "Amount of frames locked is 0!\n"); ok(frames, "Amount of frames locked is 0!\n");
/* broken: some w7 machines return pad == 0 and DATA_DISCONTINUITY here, /* broken: some w7 machines return pad == 0 and DATA_DISCONTINUITY here,
* AUDCLNT_S_BUFFER_EMPTY above, yet pos == 1-2 * period rather than 0 */ * 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); "Position %u expected %u\n", (UINT)pos, sum);
sum = pos; sum = pos;
}else if (hr == AUDCLNT_S_BUFFER_EMPTY){ }else if (hr == AUDCLNT_S_BUFFER_EMPTY){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment