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
4ac20cbc
Commit
4ac20cbc
authored
Jan 12, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Remove some returns in the capture buffer tests.
parent
a3120ce8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
capture.c
dlls/dsound/tests/capture.c
+0
-12
No files found.
dlls/dsound/tests/capture.c
View file @
4ac20cbc
...
...
@@ -379,8 +379,6 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
(
void
**
)
&
(
state
.
notify
));
ok
((
rc
==
DS_OK
)
&&
(
state
.
notify
!=
NULL
),
"IDirectSoundCaptureBuffer_QueryInterface() failed: %08x
\n
"
,
rc
);
if
(
rc
!=
DS_OK
)
return
;
for
(
i
=
0
;
i
<
NOTIFICATIONS
;
i
++
)
{
state
.
posnotify
[
i
].
dwOffset
=
(
i
*
state
.
size
)
+
state
.
size
-
1
;
...
...
@@ -390,27 +388,19 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
rc
=
IDirectSoundNotify_SetNotificationPositions
(
state
.
notify
,
NOTIFICATIONS
,
state
.
posnotify
);
ok
(
rc
==
DS_OK
,
"IDirectSoundNotify_SetNotificationPositions() failed: %08x
\n
"
,
rc
);
if
(
rc
!=
DS_OK
)
return
;
ref
=
IDirectSoundNotify_Release
(
state
.
notify
);
ok
(
ref
==
0
,
"IDirectSoundNotify_Release(): has %d references, should have "
"0
\n
"
,
ref
);
if
(
ref
!=
0
)
return
;
if
(
record
)
{
rc
=
IDirectSoundCaptureBuffer_Start
(
dscbo
,
DSCBSTART_LOOPING
);
ok
(
rc
==
DS_OK
,
"IDirectSoundCaptureBuffer_Start() failed: %08x
\n
"
,
rc
);
if
(
rc
!=
DS_OK
)
return
;
rc
=
IDirectSoundCaptureBuffer_GetStatus
(
dscbo
,
&
status
);
ok
(
rc
==
DS_OK
,
"IDirectSoundCaptureBuffer_GetStatus() failed: %08x
\n
"
,
rc
);
ok
(
status
==
(
DSCBSTATUS_CAPTURING
|
DSCBSTATUS_LOOPING
),
"GetStatus: bad status: %x
\n
"
,
status
);
if
(
rc
!=
DS_OK
)
return
;
/* wait for the notifications */
for
(
i
=
0
;
i
<
(
NOTIFICATIONS
*
2
);
i
++
)
{
...
...
@@ -428,8 +418,6 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
rc
=
IDirectSoundCaptureBuffer_Stop
(
dscbo
);
ok
(
rc
==
DS_OK
,
"IDirectSoundCaptureBuffer_Stop() failed: %08x
\n
"
,
rc
);
if
(
rc
!=
DS_OK
)
return
;
}
}
...
...
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