Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f461610e
Commit
f461610e
authored
Feb 10, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
Feb 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Handle default case in dsound3d mode switch (Coverity).
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
468477b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound3d.c
dlls/dsound/sound3d.c
+5
-5
No files found.
dlls/dsound/sound3d.c
View file @
f461610e
...
...
@@ -170,11 +170,6 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
switch
(
dsb
->
ds3db_ds3db
.
dwMode
)
{
case
DS3DMODE_DISABLE
:
TRACE
(
"3D processing disabled
\n
"
);
/* this one is here only to eliminate annoying warning message */
DSOUND_RecalcVolPan
(
&
dsb
->
volpan
);
return
;
case
DS3DMODE_NORMAL
:
TRACE
(
"Normal 3D processing mode
\n
"
);
/* we need to calculate distance between buffer and listener*/
...
...
@@ -187,6 +182,11 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
vDistance
=
dsb
->
ds3db_ds3db
.
vPosition
;
flDistance
=
VectorMagnitude
(
&
vDistance
);
break
;
default:
TRACE
(
"3D processing disabled
\n
"
);
/* this one is here only to eliminate annoying warning message */
DSOUND_RecalcVolPan
(
&
dsb
->
volpan
);
return
;
}
if
(
flDistance
>
dsb
->
ds3db_ds3db
.
flMaxDistance
)
...
...
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