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
54ff22b8
Commit
54ff22b8
authored
Mar 01, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Also handle two-to-six-channel conversions.
parent
0d0d4f39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
mixer.c
dlls/dsound/mixer.c
+9
-2
No files found.
dlls/dsound/mixer.c
View file @
54ff22b8
...
...
@@ -294,22 +294,29 @@ static inline void cp_fields(const IDirectSoundBufferImpl *dsb, const BYTE *ibuf
INT
istep
=
dsb
->
pwfx
->
wBitsPerSample
/
8
,
ostep
=
device
->
pwfx
->
wBitsPerSample
/
8
;
if
(
device
->
pwfx
->
nChannels
==
dsb
->
pwfx
->
nChannels
||
(
device
->
pwfx
->
nChannels
==
2
&&
dsb
->
pwfx
->
nChannels
==
6
))
{
(
device
->
pwfx
->
nChannels
==
2
&&
dsb
->
pwfx
->
nChannels
==
6
)
||
(
device
->
pwfx
->
nChannels
==
6
&&
dsb
->
pwfx
->
nChannels
==
2
))
{
dsb
->
convert
(
ibuf
,
obuf
,
istride
,
ostride
,
count
,
freqAcc
,
adj
);
if
(
device
->
pwfx
->
nChannels
==
2
)
if
(
device
->
pwfx
->
nChannels
==
2
||
dsb
->
pwfx
->
nChannels
==
2
)
dsb
->
convert
(
ibuf
+
istep
,
obuf
+
ostep
,
istride
,
ostride
,
count
,
freqAcc
,
adj
);
return
;
}
if
(
device
->
pwfx
->
nChannels
==
1
&&
dsb
->
pwfx
->
nChannels
==
2
)
{
dsb
->
convert
(
ibuf
,
obuf
,
istride
,
ostride
,
count
,
freqAcc
,
adj
);
return
;
}
if
(
device
->
pwfx
->
nChannels
==
2
&&
dsb
->
pwfx
->
nChannels
==
1
)
{
dsb
->
convert
(
ibuf
,
obuf
,
istride
,
ostride
,
count
,
freqAcc
,
adj
);
dsb
->
convert
(
ibuf
,
obuf
+
ostep
,
istride
,
ostride
,
count
,
freqAcc
,
adj
);
return
;
}
WARN
(
"Unable to remap channels: device=%u, buffer=%u
\n
"
,
device
->
pwfx
->
nChannels
,
dsb
->
pwfx
->
nChannels
);
}
/**
...
...
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