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
80192b93
Commit
80192b93
authored
Oct 13, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Oct 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Only warn for unsupported channels (or bits) when volume adjustment is done.
parent
3f4c2670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mixer.c
dlls/dsound/mixer.c
+5
-5
No files found.
dlls/dsound/mixer.c
View file @
80192b93
...
...
@@ -435,6 +435,11 @@ static LPBYTE DSOUND_MixerVol(const IDirectSoundBufferImpl *dsb, DWORD writepos,
TRACE
(
"left = %x, right = %x
\n
"
,
dsb
->
volpan
.
dwTotalLeftAmpFactor
,
dsb
->
volpan
.
dwTotalRightAmpFactor
);
if
((
!
(
dsb
->
dsbd
.
dwFlags
&
DSBCAPS_CTRLPAN
)
||
(
dsb
->
volpan
.
lPan
==
0
))
&&
(
!
(
dsb
->
dsbd
.
dwFlags
&
DSBCAPS_CTRLVOLUME
)
||
(
dsb
->
volpan
.
lVolume
==
0
))
&&
!
(
dsb
->
dsbd
.
dwFlags
&
DSBCAPS_CTRL3D
))
return
NULL
;
/* Nothing to do */
if
(
nChannels
!=
1
&&
nChannels
!=
2
)
{
FIXME
(
"There is no support for %d channels
\n
"
,
nChannels
);
...
...
@@ -447,11 +452,6 @@ static LPBYTE DSOUND_MixerVol(const IDirectSoundBufferImpl *dsb, DWORD writepos,
return
NULL
;
}
if
((
!
(
dsb
->
dsbd
.
dwFlags
&
DSBCAPS_CTRLPAN
)
||
(
dsb
->
volpan
.
lPan
==
0
))
&&
(
!
(
dsb
->
dsbd
.
dwFlags
&
DSBCAPS_CTRLVOLUME
)
||
(
dsb
->
volpan
.
lVolume
==
0
))
&&
!
(
dsb
->
dsbd
.
dwFlags
&
DSBCAPS_CTRL3D
))
return
NULL
;
/* Nothing to do */
if
(
dsb
->
device
->
tmp_buffer_len
<
len
||
!
dsb
->
device
->
tmp_buffer
)
{
dsb
->
device
->
tmp_buffer_len
=
len
;
...
...
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