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
1aa71ea3
Commit
1aa71ea3
authored
May 30, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Remove an unreliable test.
parent
37bba53e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
wave.c
dlls/winmm/tests/wave.c
+1
-9
No files found.
dlls/winmm/tests/wave.c
View file @
1aa71ea3
...
...
@@ -604,7 +604,6 @@ static void wave_out_test_deviceOut(int device, double duration,
DWORD
nSamplesPerSec
=
pwfx
->
nSamplesPerSec
;
BOOL
has_volume
=
pcaps
->
dwSupport
&
WAVECAPS_VOLUME
?
TRUE
:
FALSE
;
double
paused
=
0
.
0
;
DWORD
actual
;
DWORD_PTR
callback
=
0
;
DWORD_PTR
callback_instance
=
0
;
HANDLE
thread
=
0
;
...
...
@@ -724,7 +723,7 @@ static void wave_out_test_deviceOut(int device, double duration,
}
if
(
interactive
&&
rc
==
MMSYSERR_NOERROR
)
{
DWORD
start
,
end
;
DWORD
start
;
trace
(
"Playing %g second %s at %5dx%2dx%d %2d header%s %d loop%s %d bytes %s %s
\n
"
,
duration
,
sine
?
"440Hz tone"
:
"silence"
,
pwfx
->
nSamplesPerSec
,
pwfx
->
wBitsPerSample
,
pwfx
->
nChannels
,
headers
,
headers
>
1
?
"s"
:
" "
,
...
...
@@ -791,13 +790,6 @@ static void wave_out_test_deviceOut(int device, double duration,
}
}
/* Check the sound duration was at least 90% of the expected value */
end
=
GetTickCount
();
actual
=
end
-
start
;
trace
(
"sound duration=%u ms
\n
"
,
actual
);
ok
(
actual
>
900
*
(
duration
+
paused
),
"The sound played for %u ms instead of %g ms
\n
"
,
actual
,
1000
*
(
duration
+
paused
));
for
(
i
=
0
;
i
<
headers
;
i
++
)
{
ok
(
frags
[
i
].
dwFlags
==
(
WHDR_DONE
|
WHDR_PREPARED
),
"WHDR_DONE WHDR_PREPARED expected, got %s
\n
"
,
...
...
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