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
874260d1
Commit
874260d1
authored
Aug 21, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Aug 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Fix fail messages referencing GetChannelCount() instead of GetChannelVolume().
parent
346e04da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
capture.c
dlls/mmdevapi/tests/capture.c
+10
-10
render.c
dlls/mmdevapi/tests/render.c
+10
-10
No files found.
dlls/mmdevapi/tests/capture.c
View file @
874260d1
...
...
@@ -582,16 +582,16 @@ static void test_streamvolume(void)
ok
(
chans
==
fmt
->
nChannels
,
"GetChannelCount gave wrong number of channels: %d
\n
"
,
chans
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
fmt
->
nChannels
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
fmt
->
nChannels
,
&
vol
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
vol
==
1
.
f
,
"Channel volume was not 1: %f
\n
"
,
vol
);
hr
=
IAudioStreamVolume_SetChannelVolume
(
asv
,
fmt
->
nChannels
,
-
1
.
f
);
...
...
@@ -607,7 +607,7 @@ static void test_streamvolume(void)
ok
(
hr
==
S_OK
,
"SetChannelVolume failed: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
2
f
)
<
0
.
05
f
,
"Channel volume wasn't 0.2: %f
\n
"
,
vol
);
hr
=
IAudioStreamVolume_GetAllVolumes
(
asv
,
0
,
NULL
);
...
...
@@ -681,16 +681,16 @@ static void test_channelvolume(void)
ok
(
chans
==
fmt
->
nChannels
,
"GetChannelCount gave wrong number of channels: %d
\n
"
,
chans
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
fmt
->
nChannels
,
NULL
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
fmt
->
nChannels
,
&
vol
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
0
,
NULL
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
vol
==
1
.
f
,
"Channel volume was not 1: %f
\n
"
,
vol
);
hr
=
IChannelAudioVolume_SetChannelVolume
(
acv
,
fmt
->
nChannels
,
-
1
.
f
,
NULL
);
...
...
@@ -706,7 +706,7 @@ static void test_channelvolume(void)
ok
(
hr
==
S_OK
,
"SetChannelVolume failed: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
2
f
)
<
0
.
05
f
,
"Channel volume wasn't 0.2: %f
\n
"
,
vol
);
hr
=
IChannelAudioVolume_GetAllVolumes
(
acv
,
0
,
NULL
);
...
...
dlls/mmdevapi/tests/render.c
View file @
874260d1
...
...
@@ -1641,16 +1641,16 @@ static void test_streamvolume(void)
ok
(
chans
==
fmt
->
nChannels
,
"GetChannelCount gave wrong number of channels: %d
\n
"
,
chans
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
fmt
->
nChannels
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
fmt
->
nChannels
,
&
vol
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
vol
==
1
.
f
,
"Channel volume was not 1: %f
\n
"
,
vol
);
hr
=
IAudioStreamVolume_SetChannelVolume
(
asv
,
fmt
->
nChannels
,
-
1
.
f
);
...
...
@@ -1666,7 +1666,7 @@ static void test_streamvolume(void)
ok
(
hr
==
S_OK
,
"SetChannelVolume failed: %08lx
\n
"
,
hr
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
2
f
)
<
0
.
05
f
,
"Channel volume wasn't 0.2: %f
\n
"
,
vol
);
hr
=
IAudioStreamVolume_GetAllVolumes
(
asv
,
0
,
NULL
);
...
...
@@ -1745,16 +1745,16 @@ static void test_channelvolume(void)
ok
(
chans
==
fmt
->
nChannels
,
"GetChannelCount gave wrong number of channels: %d
\n
"
,
chans
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
fmt
->
nChannels
,
NULL
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
fmt
->
nChannels
,
&
vol
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
0
,
NULL
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Count
gave wrong error: %08lx
\n
"
,
hr
);
ok
(
hr
==
NULL_PTR_ERR
,
"GetChannel
Volume
gave wrong error: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
vol
==
1
.
f
,
"Channel volume was not 1: %f
\n
"
,
vol
);
hr
=
IChannelAudioVolume_SetChannelVolume
(
acv
,
fmt
->
nChannels
,
-
1
.
f
,
NULL
);
...
...
@@ -1770,7 +1770,7 @@ static void test_channelvolume(void)
ok
(
hr
==
S_OK
,
"SetChannelVolume failed: %08lx
\n
"
,
hr
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
acv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"GetChannel
Count
failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetChannel
Volume
failed: %08lx
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
2
f
)
<
0
.
05
f
,
"Channel volume wasn't 0.2: %f
\n
"
,
vol
);
hr
=
IChannelAudioVolume_GetAllVolumes
(
acv
,
0
,
NULL
);
...
...
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