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
993fbb94
Commit
993fbb94
authored
Feb 16, 2005
by
James Hawkins
Committed by
Alexandre Julliard
Feb 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix improper type-conversions.
parent
b0208974
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wave.c
dlls/winmm/tests/wave.c
+3
-3
No files found.
dlls/winmm/tests/wave.c
View file @
993fbb94
...
...
@@ -93,7 +93,7 @@ static char* wave_generate_la(WAVEFORMATEX* wfx, double duration, DWORD* size)
}
else
if
((
wfx
->
wBitsPerSample
==
32
)
&&
(
wfx
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
&&
IsEqualGUID
(
&
wfex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
))
{
union
{
float
f
;
char
c
[
4
];
}
sample
;
sample
.
f
=
y
;
sample
.
f
=
(
float
)
y
;
for
(
j
=
0
;
j
<
wfx
->
nChannels
;
j
++
)
{
b
[
0
]
=
sample
.
c
[
0
];
b
[
1
]
=
sample
.
c
[
1
];
...
...
@@ -426,7 +426,7 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
"waveOutGetPosition(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
if
(
mmtime
.
wType
==
TIME_SMPTE
)
{
BYTE
frames
=
ceil
(
fmod
(
duration
*
mmtime
.
u
.
smpte
.
fps
,
mmtime
.
u
.
smpte
.
fps
));
BYTE
frames
=
(
BYTE
)
ceil
(
fmod
(
duration
*
mmtime
.
u
.
smpte
.
fps
,
mmtime
.
u
.
smpte
.
fps
));
ok
(
mmtime
.
u
.
smpte
.
hour
==
(
BYTE
)(
floor
(
duration
/
(
60
*
60
)))
&&
mmtime
.
u
.
smpte
.
min
==
(
BYTE
)(
fmod
(
floor
(
duration
/
60
),
60
))
&&
mmtime
.
u
.
smpte
.
sec
==
(
BYTE
)(
fmod
(
duration
,
60
))
&&
...
...
@@ -529,7 +529,7 @@ static void wave_out_test_deviceOut(int device, double duration,
flags
&
WAVE_MAPPED
?
"WAVE_MAPPED"
:
""
);
/* Check that the position is 0 at start */
check_position
(
device
,
wout
,
0
.
0
,
pwfx
);
check_position
(
device
,
wout
,
0
,
pwfx
);
rc
=
waveOutSetVolume
(
wout
,
0x20002000
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutSetVolume(%s): rc=%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