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
23eca82a
Commit
23eca82a
authored
Apr 24, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
May 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Test distance and Doppler factor.
parent
ef2d8d8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
ds3d.c
dlls/dsound/tests/ds3d.c
+38
-0
No files found.
dlls/dsound/tests/ds3d.c
View file @
23eca82a
...
...
@@ -1456,6 +1456,44 @@ static void test_doppler(GUID *guid, BOOL play)
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_DISABLE
,
0
,
0
,
1
,
-
90
,
22050
,
22050
);
hr
=
IDirectSound3DListener_SetDistanceFactor
(
listener
,
10
,
DS3D_DEFERRED
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
/* Wine TODO: The distance factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
0
.
1
f
,
-
9
,
22050
,
29400
);
/* Wine TODO: The distance factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
0
.
1
f
,
9
,
22050
,
17640
);
/* Wine TODO: The distance factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
9
,
0
.
1
f
,
0
,
22050
,
29400
);
/* Wine TODO: The distance factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
-
9
,
0
.
1
f
,
0
,
22050
,
17640
);
/* Wine TODO: The distance factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
0
.
1
f
,
-
24
,
22050
,
44100
);
/* Wine TODO: The distance factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
0
.
1
f
,
24
,
22050
,
14700
);
hr
=
IDirectSound3DListener_SetDistanceFactor
(
listener
,
DS3D_DEFAULTDISTANCEFACTOR
,
DS3D_DEFERRED
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IDirectSound3DListener_SetDopplerFactor
(
listener
,
2
,
DS3D_DEFERRED
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
/* Wine TODO: The Doppler factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
1
,
-
45
,
22050
,
29400
);
/* Wine TODO: The Doppler factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
1
,
45
,
22050
,
17640
);
/* Wine TODO: The Doppler factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
45
,
1
,
0
,
22050
,
29400
);
/* Wine TODO: The Doppler factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
-
45
,
1
,
0
,
22050
,
17640
);
/* Wine TODO: The Doppler factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
1
,
-
120
,
22050
,
44100
);
/* Wine TODO: The Doppler factor has no effect. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
1
,
120
,
22050
,
14700
);
hr
=
IDirectSound3DListener_SetDopplerFactor
(
listener
,
DS3D_DEFAULTDOPPLERFACTOR
,
DS3D_DEFERRED
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
IDirectSound3DListener_Release
(
listener
);
ref
=
IDirectSoundBuffer_Release
(
primary
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
...
...
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