mmdevapi/tests: Use discontinuity flag to detect broken win7 behavior.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ba340e741a
commit
90f53193ff
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue