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
2edb4bf3
Commit
2edb4bf3
authored
Apr 28, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Apr 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Apply rolloff factor to distance attenuation.
parent
99619619
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sound3d.c
dlls/dsound/sound3d.c
+1
-1
No files found.
dlls/dsound/sound3d.c
View file @
2edb4bf3
...
...
@@ -207,7 +207,7 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
flDistance
=
dsb
->
ds3db_ds3db
.
flMinDistance
;
/* attenuation proportional to the distance squared, converted to millibels as in lVolume*/
lVolume
-=
log10
(
flDistance
/
dsb
->
ds3db_ds3db
.
flMinDistance
*
flDistance
/
dsb
->
ds3db_ds3db
.
flMinDistance
)
*
1000
;
lVolume
-=
log10
(
flDistance
/
dsb
->
ds3db_ds3db
.
flMinDistance
*
flDistance
/
dsb
->
ds3db_ds3db
.
flMinDistance
)
*
1000
*
dsb
->
device
->
ds3dl
.
flRolloffFactor
;
TRACE
(
"dist. att: Distance = %f, MinDistance = %f => adjusting volume %d to %f
\n
"
,
flDistance
,
dsb
->
ds3db_ds3db
.
flMinDistance
,
dsb
->
ds3db_lVolume
,
lVolume
);
/* conning */
...
...
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