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
023df851
Commit
023df851
authored
Jan 20, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Increase the timing tolerances some more.
parent
d8375e21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wave.c
dlls/winmm/tests/wave.c
+2
-2
No files found.
dlls/winmm/tests/wave.c
View file @
023df851
...
@@ -789,13 +789,13 @@ static void wave_out_test_deviceOut(int device, double duration,
...
@@ -789,13 +789,13 @@ static void wave_out_test_deviceOut(int device, double duration,
}
}
}
}
/* Check the sound duration was between -10% and +
2
5% of the expected value */
/* Check the sound duration was between -10% and +
3
5% of the expected value */
end
=
GetTickCount
();
end
=
GetTickCount
();
actual
=
(
end
-
start
)
/
1000
.
0
;
actual
=
(
end
-
start
)
/
1000
.
0
;
if
(
winetest_debug
>
1
)
if
(
winetest_debug
>
1
)
trace
(
"sound duration=%g ms
\n
"
,
1000
*
actual
);
trace
(
"sound duration=%g ms
\n
"
,
1000
*
actual
);
ok
((
actual
>
(
0
.
9
*
(
duration
+
paused
)))
&&
ok
((
actual
>
(
0
.
9
*
(
duration
+
paused
)))
&&
(
actual
<
(
1
.
2
5
*
(
duration
+
paused
))),
(
actual
<
(
1
.
3
5
*
(
duration
+
paused
))),
"The sound played for %g ms instead of %g ms
\n
"
,
"The sound played for %g ms instead of %g ms
\n
"
,
1000
*
actual
,
1000
*
(
duration
+
paused
));
1000
*
actual
,
1000
*
(
duration
+
paused
));
for
(
i
=
0
;
i
<
headers
;
i
++
)
{
for
(
i
=
0
;
i
<
headers
;
i
++
)
{
...
...
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