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
df201d3e
Commit
df201d3e
authored
Sep 02, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Sep 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Accept up to 8 channels.
parent
4441a7aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
40 deletions
+28
-40
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+10
-14
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+9
-13
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+9
-13
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
df201d3e
...
...
@@ -1139,25 +1139,21 @@ static DWORD get_channel_mask(unsigned int channels)
case
0
:
return
0
;
case
1
:
return
SPEAKER_FRONT_CENTER
;
return
KSAUDIO_SPEAKER_MONO
;
case
2
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
;
return
KSAUDIO_SPEAKER_STEREO
;
case
3
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_LOW_FREQUENCY
;
return
KSAUDIO_SPEAKER_STEREO
|
SPEAKER_LOW_FREQUENCY
;
case
4
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
;
return
KSAUDIO_SPEAKER_QUAD
;
/* not _SURROUND */
case
5
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
;
return
KSAUDIO_SPEAKER_QUAD
|
SPEAKER_LOW_FREQUENCY
;
case
6
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
|
SPEAKER_FRONT_CENTER
;
return
KSAUDIO_SPEAKER_5POINT1
;
/* not 5POINT1_SURROUND */
case
7
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
|
SPEAKER_FRONT_CENTER
|
SPEAKER_BACK_CENTER
;
return
KSAUDIO_SPEAKER_5POINT1
|
SPEAKER_BACK_CENTER
;
case
8
:
return
KSAUDIO_SPEAKER_7POINT1
;
/* not 7POINT1_SURROUND */
}
FIXME
(
"Unknown speaker configuration: %u
\n
"
,
channels
);
return
0
;
...
...
@@ -1296,7 +1292,7 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
WARN
(
"Unable to get max channels: %d (%s)
\n
"
,
err
,
snd_strerror
(
err
));
goto
exit
;
}
if
(
max
>
7
)
if
(
max
>
8
)
max
=
2
;
if
(
fmt
->
nChannels
>
max
){
hr
=
S_FALSE
;
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
df201d3e
...
...
@@ -568,25 +568,21 @@ static DWORD get_channel_mask(unsigned int channels)
case
0
:
return
0
;
case
1
:
return
SPEAKER_FRONT_CENTER
;
return
KSAUDIO_SPEAKER_MONO
;
case
2
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
;
return
KSAUDIO_SPEAKER_STEREO
;
case
3
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_LOW_FREQUENCY
;
return
KSAUDIO_SPEAKER_STEREO
|
SPEAKER_LOW_FREQUENCY
;
case
4
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
;
return
KSAUDIO_SPEAKER_QUAD
;
/* not _SURROUND */
case
5
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
;
return
KSAUDIO_SPEAKER_QUAD
|
SPEAKER_LOW_FREQUENCY
;
case
6
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
|
SPEAKER_FRONT_CENTER
;
return
KSAUDIO_SPEAKER_5POINT1
;
/* not 5POINT1_SURROUND */
case
7
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
|
SPEAKER_FRONT_CENTER
|
SPEAKER_BACK_CENTER
;
return
KSAUDIO_SPEAKER_5POINT1
|
SPEAKER_BACK_CENTER
;
case
8
:
return
KSAUDIO_SPEAKER_7POINT1
;
/* not 7POINT1_SURROUND */
}
FIXME
(
"Unknown speaker configuration: %u
\n
"
,
channels
);
return
0
;
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
df201d3e
...
...
@@ -592,25 +592,21 @@ static DWORD get_channel_mask(unsigned int channels)
case
0
:
return
0
;
case
1
:
return
SPEAKER_FRONT_CENTER
;
return
KSAUDIO_SPEAKER_MONO
;
case
2
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
;
return
KSAUDIO_SPEAKER_STEREO
;
case
3
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_LOW_FREQUENCY
;
return
KSAUDIO_SPEAKER_STEREO
|
SPEAKER_LOW_FREQUENCY
;
case
4
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
;
return
KSAUDIO_SPEAKER_QUAD
;
/* not _SURROUND */
case
5
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
;
return
KSAUDIO_SPEAKER_QUAD
|
SPEAKER_LOW_FREQUENCY
;
case
6
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
|
SPEAKER_FRONT_CENTER
;
return
KSAUDIO_SPEAKER_5POINT1
;
/* not 5POINT1_SURROUND */
case
7
:
return
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
|
SPEAKER_BACK_LEFT
|
SPEAKER_BACK_RIGHT
|
SPEAKER_LOW_FREQUENCY
|
SPEAKER_FRONT_CENTER
|
SPEAKER_BACK_CENTER
;
return
KSAUDIO_SPEAKER_5POINT1
|
SPEAKER_BACK_CENTER
;
case
8
:
return
KSAUDIO_SPEAKER_7POINT1
;
/* not 7POINT1_SURROUND */
}
FIXME
(
"Unknown speaker configuration: %u
\n
"
,
channels
);
return
0
;
...
...
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