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
36eb79e7
Commit
36eb79e7
authored
Aug 16, 2012
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Don't cap the allowed number of channels.
parent
6c1fcaa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+2
-13
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
36eb79e7
...
@@ -1463,7 +1463,6 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
...
@@ -1463,7 +1463,6 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
snd_pcm_format_t
format
;
snd_pcm_format_t
format
;
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
WAVEFORMATEX
*
closest
=
NULL
;
WAVEFORMATEX
*
closest
=
NULL
;
const
WAVEFORMATEXTENSIBLE
*
fmtex
=
(
const
WAVEFORMATEXTENSIBLE
*
)
fmt
;
unsigned
int
max
=
0
,
min
=
0
;
unsigned
int
max
=
0
,
min
=
0
;
int
err
;
int
err
;
...
@@ -1543,8 +1542,6 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
...
@@ -1543,8 +1542,6 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
WARN
(
"Unable to get max channels: %d (%s)
\n
"
,
err
,
snd_strerror
(
err
));
WARN
(
"Unable to get max channels: %d (%s)
\n
"
,
err
,
snd_strerror
(
err
));
goto
exit
;
goto
exit
;
}
}
if
(
max
>
8
)
max
=
2
;
if
(
fmt
->
nChannels
>
max
){
if
(
fmt
->
nChannels
>
max
){
hr
=
S_FALSE
;
hr
=
S_FALSE
;
closest
->
nChannels
=
max
;
closest
->
nChannels
=
max
;
...
@@ -1553,16 +1550,8 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
...
@@ -1553,16 +1550,8 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
closest
->
nChannels
=
min
;
closest
->
nChannels
=
min
;
}
}
if
(
closest
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
){
if
(
closest
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
DWORD
mask
=
get_channel_mask
(
closest
->
nChannels
);
((
WAVEFORMATEXTENSIBLE
*
)
closest
)
->
dwChannelMask
=
get_channel_mask
(
closest
->
nChannels
);
((
WAVEFORMATEXTENSIBLE
*
)
closest
)
->
dwChannelMask
=
mask
;
if
(
fmt
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
&&
fmtex
->
dwChannelMask
!=
0
&&
fmtex
->
dwChannelMask
!=
mask
)
hr
=
S_FALSE
;
}
exit:
exit:
LeaveCriticalSection
(
&
This
->
lock
);
LeaveCriticalSection
(
&
This
->
lock
);
...
...
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