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
8d4b3626
Commit
8d4b3626
authored
Jul 19, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the check_position() test: on Windows waveOutGetPosition() returns
the number of samples played plus one (also one extra sample for the byte count).
parent
54751b23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wave.c
dlls/winmm/tests/wave.c
+4
-4
No files found.
dlls/winmm/tests/wave.c
View file @
8d4b3626
...
@@ -204,18 +204,18 @@ static void check_position(int device, HWAVEOUT wout, double duration, LPWAVEFOR
...
@@ -204,18 +204,18 @@ static void check_position(int device, HWAVEOUT wout, double duration, LPWAVEFOR
ok
(
rc
==
MMSYSERR_NOERROR
,
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutGetPosition: device=%s rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
"waveOutGetPosition: device=%s rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
if
(
mmtime
.
wType
==
TIME_BYTES
)
if
(
mmtime
.
wType
==
TIME_BYTES
)
ok
(
mmtime
.
u
.
cb
==
duration
*
pwfx
->
nAvgBytesPerSec
,
ok
(
mmtime
.
u
.
cb
==
duration
*
pwfx
->
nAvgBytesPerSec
+
pwfx
->
wBitsPerSample
/
8
,
"waveOutGetPosition returned %ld bytes, should be %ld
\n
"
,
"waveOutGetPosition returned %ld bytes, should be %ld
\n
"
,
mmtime
.
u
.
cb
,
(
DWORD
)(
duration
*
pwfx
->
nAvgBytesPerSec
));
mmtime
.
u
.
cb
,
(
DWORD
)(
duration
*
pwfx
->
nAvgBytesPerSec
)
+
pwfx
->
wBitsPerSample
/
8
);
mmtime
.
wType
=
TIME_SAMPLES
;
mmtime
.
wType
=
TIME_SAMPLES
;
rc
=
waveOutGetPosition
(
wout
,
&
mmtime
,
sizeof
(
mmtime
));
rc
=
waveOutGetPosition
(
wout
,
&
mmtime
,
sizeof
(
mmtime
));
ok
(
rc
==
MMSYSERR_NOERROR
,
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutGetPosition: device=%s rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
"waveOutGetPosition: device=%s rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
if
(
mmtime
.
wType
==
TIME_SAMPLES
)
if
(
mmtime
.
wType
==
TIME_SAMPLES
)
ok
(
mmtime
.
u
.
sample
==
duration
*
pwfx
->
nSamplesPerSec
,
ok
(
mmtime
.
u
.
sample
==
duration
*
pwfx
->
nSamplesPerSec
+
1
,
"waveOutGetPosition returned %ld samples, should be %ld
\n
"
,
"waveOutGetPosition returned %ld samples, should be %ld
\n
"
,
mmtime
.
u
.
sample
,
(
DWORD
)(
duration
*
pwfx
->
nSamplesPerSec
));
mmtime
.
u
.
sample
,
(
DWORD
)(
duration
*
pwfx
->
nSamplesPerSec
)
+
1
);
mmtime
.
wType
=
TIME_MS
;
mmtime
.
wType
=
TIME_MS
;
rc
=
waveOutGetPosition
(
wout
,
&
mmtime
,
sizeof
(
mmtime
));
rc
=
waveOutGetPosition
(
wout
,
&
mmtime
,
sizeof
(
mmtime
));
...
...
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