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
7480dc0a
Commit
7480dc0a
authored
Nov 08, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Prevent crash when device is in use.
parent
75dd4123
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
capture.c
dlls/mmdevapi/tests/capture.c
+8
-0
render.c
dlls/mmdevapi/tests/render.c
+4
-0
No files found.
dlls/mmdevapi/tests/capture.c
View file @
7480dc0a
...
...
@@ -330,6 +330,8 @@ static void test_streamvolume(void)
hr
=
IAudioClient_Initialize
(
ac
,
AUDCLNT_SHAREMODE_SHARED
,
0
,
5000000
,
0
,
fmt
,
NULL
);
ok
(
hr
==
S_OK
,
"Initialize failed: %08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
hr
=
IAudioClient_GetService
(
ac
,
&
IID_IAudioStreamVolume
,
(
void
**
)
&
asv
);
ok
(
hr
==
S_OK
,
"GetService failed: %08x
\n
"
,
hr
);
...
...
@@ -430,6 +432,8 @@ static void test_channelvolume(void)
hr
=
IAudioClient_GetService
(
ac
,
&
IID_IChannelAudioVolume
,
(
void
**
)
&
acv
);
ok
(
hr
==
S_OK
,
"GetService failed: %08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
hr
=
IChannelAudioVolume_GetChannelCount
(
acv
,
NULL
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannelCount gave wrong error: %08x
\n
"
,
hr
);
...
...
@@ -530,6 +534,8 @@ static void test_simplevolume(void)
hr
=
IAudioClient_GetService
(
ac
,
&
IID_ISimpleAudioVolume
,
(
void
**
)
&
sav
);
ok
(
hr
==
S_OK
,
"GetService failed: %08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
hr
=
ISimpleAudioVolume_GetMasterVolume
(
sav
,
NULL
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetMasterVolume gave wrong error: %08x
\n
"
,
hr
);
...
...
@@ -621,6 +627,8 @@ static void test_volume_dependence(void)
hr
=
IAudioClient_GetService
(
ac
,
&
IID_IAudioStreamVolume
,
(
void
**
)
&
asv
);
ok
(
hr
==
S_OK
,
"GetService (AudioStreamVolume) failed: %08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
hr
=
IAudioStreamVolume_SetChannelVolume
(
asv
,
0
,
0
.
2
f
);
ok
(
hr
==
S_OK
,
"ASV_SetChannelVolume failed: %08x
\n
"
,
hr
);
...
...
dlls/mmdevapi/tests/render.c
View file @
7480dc0a
...
...
@@ -530,6 +530,8 @@ static void test_padding(void)
hr
=
IAudioClient_Initialize
(
ac
,
AUDCLNT_SHAREMODE_SHARED
,
0
,
5000000
,
0
,
pwfx
,
NULL
);
ok
(
hr
==
S_OK
,
"Initialize failed: %08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
hr
=
IAudioClient_GetDevicePeriod
(
ac
,
&
defp
,
&
minp
);
ok
(
hr
==
S_OK
,
"GetDevicePeriod failed: %08x
\n
"
,
hr
);
...
...
@@ -1396,6 +1398,8 @@ static void test_session_creation(void)
NULL
,
(
void
**
)
&
ac
);
ok
((
hr
==
S_OK
)
^
(
ac
==
NULL
),
"Activate %08x &out pointer
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Activation failed with %08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
hr
=
IAudioClient_GetMixFormat
(
ac
,
&
fmt
);
ok
(
hr
==
S_OK
,
"GetMixFormat failed: %08x
\n
"
,
hr
);
...
...
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