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
24b315c5
Commit
24b315c5
authored
May 28, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Fix the Visual C++ double to float conversion warnings.
parent
30b77444
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
ds3d.c
dlls/dsound/tests/ds3d.c
+6
-8
ds3d8.c
dlls/dsound/tests/ds3d8.c
+6
-8
No files found.
dlls/dsound/tests/ds3d.c
View file @
24b315c5
...
...
@@ -608,8 +608,8 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
ok
(
rc
==
DS_OK
,
"IDirectSound3dListener_GetAllParameters() "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
move_listener
)
{
listener_param
.
vPosition
.
x
=
-
5
.
0
;
listener_param
.
vVelocity
.
x
=
10
.
0
/
duration
;
listener_param
.
vPosition
.
x
=
-
5
.
0
f
;
listener_param
.
vVelocity
.
x
=
(
float
)(
10
.
0
/
duration
)
;
}
rc
=
IDirectSound3DListener_SetAllParameters
(
listener
,
&
listener_param
,
...
...
@@ -619,8 +619,8 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
}
if
(
buffer3d
)
{
if
(
move_sound
)
{
buffer_param
.
vPosition
.
x
=
100
.
0
;
buffer_param
.
vVelocity
.
x
=
-
200
.
0
/
duration
;
buffer_param
.
vPosition
.
x
=
100
.
0
f
;
buffer_param
.
vVelocity
.
x
=
(
float
)(
-
200
.
0
/
duration
)
;
}
buffer_param
.
flMinDistance
=
10
;
rc
=
IDirectSound3DBuffer_SetAllParameters
(
buffer
,
&
buffer_param
,
...
...
@@ -634,8 +634,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
WaitForSingleObject
(
GetCurrentProcess
(),
TIME_SLICE
);
now
=
GetTickCount
();
if
(
listener
&&
move_listener
)
{
listener_param
.
vPosition
.
x
=
-
5
.
0
+
10
.
0
*
(
now
-
start_time
)
/
1000
/
duration
;
listener_param
.
vPosition
.
x
=
(
float
)(
-
5
.
0
+
10
.
0
*
(
now
-
start_time
)
/
1000
/
duration
);
if
(
winetest_debug
>
2
)
trace
(
"listener position=%g
\n
"
,
listener_param
.
vPosition
.
x
);
rc
=
IDirectSound3DListener_SetPosition
(
listener
,
...
...
@@ -645,8 +644,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
"%s
\n
"
,
DXGetErrorString8
(
rc
));
}
if
(
buffer3d
&&
move_sound
)
{
buffer_param
.
vPosition
.
x
=
100
-
200
.
0
*
(
now
-
start_time
)
/
1000
/
duration
;
buffer_param
.
vPosition
.
x
=
(
float
)(
100
-
200
.
0
*
(
now
-
start_time
)
/
1000
/
duration
);
if
(
winetest_debug
>
2
)
trace
(
"sound position=%g
\n
"
,
buffer_param
.
vPosition
.
x
);
rc
=
IDirectSound3DBuffer_SetPosition
(
buffer
,
...
...
dlls/dsound/tests/ds3d8.c
View file @
24b315c5
...
...
@@ -485,8 +485,8 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
ok
(
rc
==
DS_OK
,
"IDirectSound3dListener_GetAllParameters() "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
move_listener
)
{
listener_param
.
vPosition
.
x
=
-
5
.
0
;
listener_param
.
vVelocity
.
x
=
10
.
0
/
duration
;
listener_param
.
vPosition
.
x
=
-
5
.
0
f
;
listener_param
.
vVelocity
.
x
=
(
float
)(
10
.
0
/
duration
)
;
}
rc
=
IDirectSound3DListener_SetAllParameters
(
listener
,
&
listener_param
,
...
...
@@ -496,8 +496,8 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
}
if
(
buffer3d
)
{
if
(
move_sound
)
{
buffer_param
.
vPosition
.
x
=
100
.
0
;
buffer_param
.
vVelocity
.
x
=
-
200
.
0
/
duration
;
buffer_param
.
vPosition
.
x
=
100
.
0
f
;
buffer_param
.
vVelocity
.
x
=
(
float
)(
-
200
.
0
/
duration
)
;
}
buffer_param
.
flMinDistance
=
10
;
rc
=
IDirectSound3DBuffer_SetAllParameters
(
buffer
,
&
buffer_param
,
...
...
@@ -511,8 +511,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
WaitForSingleObject
(
GetCurrentProcess
(),
TIME_SLICE
);
now
=
GetTickCount
();
if
(
listener
&&
move_listener
)
{
listener_param
.
vPosition
.
x
=
-
5
.
0
+
10
.
0
*
(
now
-
start_time
)
/
1000
/
duration
;
listener_param
.
vPosition
.
x
=
(
float
)(
-
5
.
0
+
10
.
0
*
(
now
-
start_time
)
/
1000
/
duration
);
if
(
winetest_debug
>
2
)
trace
(
"listener position=%g
\n
"
,
listener_param
.
vPosition
.
x
);
rc
=
IDirectSound3DListener_SetPosition
(
listener
,
...
...
@@ -522,8 +521,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
"%s
\n
"
,
DXGetErrorString8
(
rc
));
}
if
(
buffer3d
&&
move_sound
)
{
buffer_param
.
vPosition
.
x
=
100
-
200
.
0
*
(
now
-
start_time
)
/
1000
/
duration
;
buffer_param
.
vPosition
.
x
=
(
float
)(
100
-
200
.
0
*
(
now
-
start_time
)
/
1000
/
duration
);
if
(
winetest_debug
>
2
)
trace
(
"sound position=%g
\n
"
,
buffer_param
.
vPosition
.
x
);
rc
=
IDirectSound3DBuffer_SetPosition
(
buffer
,
...
...
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