Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
90f53193
Commit
90f53193
authored
Oct 24, 2019
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
ba340e74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
capture.c
dlls/mmdevapi/tests/capture.c
+1
-1
No files found.
dlls/mmdevapi/tests/capture.c
View file @
90f53193
...
...
@@ -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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment