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
65e19a09
Commit
65e19a09
authored
Apr 11, 2015
by
Igor Kotrasinski
Committed by
Alexandre Julliard
Apr 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Fix conning formula to correctly interpolate volume.
parent
ea371a24
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 @
65e19a09
...
...
@@ -242,7 +242,7 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
if
(
flAngle
>
dwOutsideConeAngle
)
flAngle
=
dwOutsideConeAngle
;
/* this probably isn't the right thing, but it's ok for the time being */
lVolume
+=
((
dsb
->
ds3db_ds3db
.
lConeOutsideVolume
)
/
((
dwOutsideConeAngle
)
-
(
dwInsideConeAngle
)))
*
flAngl
e
;
lVolume
+=
((
flAngle
-
dwInsideConeAngle
)
/
(
dwOutsideConeAngle
-
dwInsideConeAngle
))
*
dsb
->
ds3db_ds3db
.
lConeOutsideVolum
e
;
}
TRACE
(
"conning: Angle = %f deg; InsideConeAngle(/2) = %d deg; OutsideConeAngle(/2) = %d deg; ConeOutsideVolume = %d => adjusting volume to %f
\n
"
,
flAngle
,
dsb
->
ds3db_ds3db
.
dwInsideConeAngle
/
2
,
dsb
->
ds3db_ds3db
.
dwOutsideConeAngle
/
2
,
dsb
->
ds3db_ds3db
.
lConeOutsideVolume
,
lVolume
);
...
...
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