Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
27adecec
Commit
27adecec
authored
Feb 29, 2012
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Add tests for checking events to capture.
parent
78f82fa0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
capture.c
dlls/mmdevapi/tests/capture.c
+28
-1
No files found.
dlls/mmdevapi/tests/capture.c
View file @
27adecec
...
...
@@ -82,7 +82,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
HRESULT
hr
;
UINT32
frames
,
next
,
pad
,
sum
=
0
;
BYTE
*
data
;
DWORD
flags
;
DWORD
flags
,
r
;
UINT64
pos
,
qpc
;
REFERENCE_TIME
period
;
...
...
@@ -413,8 +413,35 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
/* Some w7 machines signal DATA_DISCONTINUITY here following the
* previous AUDCLNT_S_BUFFER_EMPTY, others not. What logic? */
ok
(
pos
>=
sum
,
"Position %u gap %d
\n
"
,
(
UINT
)
pos
,
(
UINT
)
pos
-
sum
);
IAudioCaptureClient_ReleaseBuffer
(
acc
,
frames
);
}
hr
=
IAudioClient_Stop
(
ac
);
ok
(
hr
==
S_OK
,
"Stop failed: %08x
\n
"
,
hr
);
ok
(
ResetEvent
(
handle
),
"ResetEvent
\n
"
);
/* Still receiving events! */
r
=
WaitForSingleObject
(
handle
,
20
);
todo_wine
ok
(
r
==
WAIT_OBJECT_0
,
"Wait(event) after Stop gave %x
\n
"
,
r
);
hr
=
IAudioClient_Reset
(
ac
);
ok
(
hr
==
S_OK
,
"Reset failed: %08x
\n
"
,
hr
);
ok
(
ResetEvent
(
handle
),
"ResetEvent
\n
"
);
r
=
WaitForSingleObject
(
handle
,
120
);
todo_wine
ok
(
r
==
WAIT_OBJECT_0
,
"Wait(event) after Reset gave %x
\n
"
,
r
);
hr
=
IAudioClient_SetEventHandle
(
ac
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"SetEventHandle(NULL) returns %08x
\n
"
,
hr
);
r
=
WaitForSingleObject
(
handle
,
70
);
todo_wine
ok
(
r
==
WAIT_OBJECT_0
,
"Wait(NULL event) gave %x
\n
"
,
r
);
hr
=
IAudioClient_Start
(
ac
);
ok
(
hr
==
S_OK
,
"Start failed: %08x
\n
"
,
hr
);
IUnknown_Release
(
acc
);
}
...
...
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