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
9f59a609
Commit
9f59a609
authored
Mar 04, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Use float constants with fabsf.
parent
d2805206
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
capture.c
dlls/mmdevapi/tests/capture.c
+4
-4
render.c
dlls/mmdevapi/tests/render.c
+4
-4
No files found.
dlls/mmdevapi/tests/capture.c
View file @
9f59a609
...
...
@@ -948,15 +948,15 @@ static void test_volume_dependence(void)
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"ASV_GetChannelVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
2
)
<
0
.
05
f
,
"ASV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
2
f
)
<
0
.
05
f
,
"ASV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
cav
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"CAV_GetChannelVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
4
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
4
f
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
ISimpleAudioVolume_GetMasterVolume
(
sav
,
&
vol
);
ok
(
hr
==
S_OK
,
"SAV_GetMasterVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
6
)
<
0
.
05
f
,
"SAV_GetMasterVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
6
f
)
<
0
.
05
f
,
"SAV_GetMasterVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
IMMDevice_Activate
(
dev
,
&
IID_IAudioClient
,
CLSCTX_INPROC_SERVER
,
NULL
,
(
void
**
)
&
ac2
);
...
...
@@ -976,7 +976,7 @@ static void test_volume_dependence(void)
hr
=
IChannelAudioVolume_GetChannelVolume
(
cav2
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"CAV_GetChannelVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
4
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
4
f
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv2
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"ASV_GetChannelVolume failed: %08x
\n
"
,
hr
);
...
...
dlls/mmdevapi/tests/render.c
View file @
9f59a609
...
...
@@ -1855,15 +1855,15 @@ static void test_volume_dependence(void)
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"ASV_GetChannelVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
2
)
<
0
.
05
f
,
"ASV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
2
f
)
<
0
.
05
f
,
"ASV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
IChannelAudioVolume_GetChannelVolume
(
cav
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"CAV_GetChannelVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
4
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
4
f
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
ISimpleAudioVolume_GetMasterVolume
(
sav
,
&
vol
);
ok
(
hr
==
S_OK
,
"SAV_GetMasterVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
6
)
<
0
.
05
f
,
"SAV_GetMasterVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
6
f
)
<
0
.
05
f
,
"SAV_GetMasterVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
IMMDevice_Activate
(
dev
,
&
IID_IAudioClient
,
CLSCTX_INPROC_SERVER
,
NULL
,
(
void
**
)
&
ac2
);
...
...
@@ -1889,7 +1889,7 @@ static void test_volume_dependence(void)
hr
=
IChannelAudioVolume_GetChannelVolume
(
cav2
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"CAV_GetChannelVolume failed: %08x
\n
"
,
hr
);
ok
(
fabsf
(
vol
-
0
.
4
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
ok
(
fabsf
(
vol
-
0
.
4
f
)
<
0
.
05
f
,
"CAV_GetChannelVolume gave wrong volume: %f
\n
"
,
vol
);
hr
=
IAudioStreamVolume_GetChannelVolume
(
asv2
,
0
,
&
vol
);
ok
(
hr
==
S_OK
,
"ASV_GetChannelVolume 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