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
b923aea7
Commit
b923aea7
authored
Apr 24, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
May 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Clamp the shifted frequency to [DSBFREQUENCY_MIN, DSBFREQUENCY_MAX].
parent
3d5f2f87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
sound3d.c
dlls/dsound/sound3d.c
+1
-1
ds3d.c
dlls/dsound/tests/ds3d.c
+0
-1
No files found.
dlls/dsound/sound3d.c
View file @
b923aea7
...
...
@@ -312,7 +312,7 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
flFreq
=
dsb
->
ds3db_freq
*
(
DEFAULT_VELOCITY
/
(
DEFAULT_VELOCITY
+
flLimitedVel
));
TRACE
(
"doppler: Relative velocity (component) = %f => Doppler shift: %ld Hz -> %f Hz
\n
"
,
flRelativeVel
,
dsb
->
ds3db_freq
,
flFreq
);
dsb
->
freq
=
flFreq
;
dsb
->
freq
=
max
(
DSBFREQUENCY_MIN
,
min
(
DSBFREQUENCY_MAX
,
(
DWORD
)
flFreq
))
;
}
DSOUND_RecalcFormat
(
dsb
);
...
...
dlls/dsound/tests/ds3d.c
View file @
b923aea7
...
...
@@ -1450,7 +1450,6 @@ static void test_doppler(GUID *guid, BOOL play)
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
1
,
240
,
22050
,
14700
);
/* The shifted frequency is limited to DSBFREQUENCY_MAX. */
/* Wine TODO: The frequency is not limited. */
check_doppler
(
dsound
,
listener
,
play
,
DS3DMODE_NORMAL
,
0
,
0
,
1
,
-
90
,
176400
,
200000
);
IDirectSound3DListener_Release
(
listener
);
...
...
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