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
edff5338
Commit
edff5338
authored
Jul 17, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Make sure we can set volume before reporting WAVECAPS_VOLUME.
parent
f2fc4d3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
waveinit.c
dlls/winealsa.drv/waveinit.c
+16
-4
No files found.
dlls/winealsa.drv/waveinit.c
View file @
edff5338
...
@@ -307,10 +307,22 @@ static int ALSA_ComputeCaps(snd_ctl_t *ctl, snd_pcm_t *pcm,
...
@@ -307,10 +307,22 @@ static int ALSA_ComputeCaps(snd_ctl_t *ctl, snd_pcm_t *pcm,
/* check for volume control support */
/* check for volume control support */
if
(
ctl
)
{
if
(
ctl
)
{
*
supports
|=
WAVECAPS_VOLUME
;
if
(
snd_ctl_name
(
ctl
))
{
if
(
chmin
<=
2
&&
2
<=
chmax
)
snd_hctl_t
*
hctl
;
*
supports
|=
WAVECAPS_LRVOLUME
;
if
(
snd_hctl_open
(
&
hctl
,
snd_ctl_name
(
ctl
),
0
)
>=
0
)
{
snd_hctl_load
(
hctl
);
if
(
!
ALSA_CheckSetVolume
(
hctl
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
))
{
*
supports
|=
WAVECAPS_VOLUME
;
if
(
chmin
<=
2
&&
2
<=
chmax
)
*
supports
|=
WAVECAPS_LRVOLUME
;
}
snd_hctl_free
(
hctl
);
snd_hctl_close
(
hctl
);
}
}
}
}
if
(
*
formats
&
(
WAVE_FORMAT_1M08
|
WAVE_FORMAT_2M08
|
if
(
*
formats
&
(
WAVE_FORMAT_1M08
|
WAVE_FORMAT_2M08
|
...
...
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