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
b7a2f087
Commit
b7a2f087
authored
Dec 27, 2014
by
Mark Harmstone
Committed by
Alexandre Julliard
Dec 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Remove unused struct entries.
parent
ddc0c320
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
dsound_private.h
dlls/dsound/dsound_private.h
+0
-3
mixer.c
dlls/dsound/mixer.c
+0
-8
No files found.
dlls/dsound/dsound_private.h
View file @
b7a2f087
...
...
@@ -53,10 +53,7 @@ typedef struct _DSVOLUMEPAN
DWORD
dwTotalLeftAmpFactor
;
DWORD
dwTotalRightAmpFactor
;
LONG
lVolume
;
DWORD
dwVolAmpFactor
;
LONG
lPan
;
DWORD
dwPanLeftAmpFactor
;
DWORD
dwPanRightAmpFactor
;
}
DSVOLUMEPAN
,
*
PDSVOLUMEPAN
;
/*****************************************************************************
...
...
dlls/dsound/mixer.c
View file @
b7a2f087
...
...
@@ -51,8 +51,6 @@ void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan)
TRACE
(
"Vol=%d Pan=%d
\n
"
,
volpan
->
lVolume
,
volpan
->
lPan
);
/* the AmpFactors are expressed in 16.16 fixed point */
volpan
->
dwVolAmpFactor
=
(
ULONG
)
(
pow
(
2
.
0
,
volpan
->
lVolume
/
600
.
0
)
*
0xffff
);
/* FIXME: dwPan{Left|Right}AmpFactor */
/* FIXME: use calculated vol and pan ampfactors */
temp
=
(
double
)
(
volpan
->
lVolume
-
(
volpan
->
lPan
>
0
?
volpan
->
lPan
:
0
));
...
...
@@ -78,15 +76,9 @@ void DSOUND_AmpFactorToVolPan(PDSVOLUMEPAN volpan)
else
right
=
600
*
log
(((
double
)
volpan
->
dwTotalRightAmpFactor
)
/
0xffff
)
/
log
(
2
);
if
(
left
<
right
)
{
volpan
->
lVolume
=
right
;
volpan
->
dwVolAmpFactor
=
volpan
->
dwTotalRightAmpFactor
;
}
else
{
volpan
->
lVolume
=
left
;
volpan
->
dwVolAmpFactor
=
volpan
->
dwTotalLeftAmpFactor
;
}
if
(
volpan
->
lVolume
<
-
10000
)
volpan
->
lVolume
=-
10000
;
volpan
->
lPan
=
right
-
left
;
...
...
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