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
84e1e994
Commit
84e1e994
authored
May 29, 2005
by
Robert Reif
Committed by
Alexandre Julliard
May 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix volume control.
parent
605249eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
audio.c
dlls/winmm/winealsa/audio.c
+8
-1
No files found.
dlls/winmm/winealsa/audio.c
View file @
84e1e994
...
...
@@ -159,6 +159,7 @@ typedef struct {
snd_pcm_t
*
handle
;
/* handle to ALSA playback device */
snd_pcm_hw_params_t
*
hw_params
;
/* ALSA Hw params */
char
*
mixer
;
/* mixer device name: hw:# */
snd_hctl_t
*
hctl
;
/* control handle for the playback volume */
snd_pcm_sframes_t
(
*
write
)(
snd_pcm_t
*
,
const
void
*
,
snd_pcm_uframes_t
);
...
...
@@ -800,6 +801,7 @@ LONG ALSA_WaveInit(void)
for
(
i
=
0
;
i
<
MAX_WAVEOUTDRV
;
i
++
)
{
char
device
[
64
];
char
mixer
[
16
];
char
*
regdev
;
WCHAR
nameW
[
64
];
snd_pcm_format_mask_t
*
fmask
;
...
...
@@ -908,7 +910,12 @@ LONG ALSA_WaveInit(void)
/* Get a high level control handle for volume operations */
/* FIXME: This is never freed! (there are other things done in this function similarly not freed) */
if
(
snd_hctl_open
(
&
wwo
->
hctl
,
wwo
->
device
,
0
)
>=
0
)
sprintf
(
mixer
,
"hw:%d"
,
i
);
wwo
->
mixer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
mixer
));
strcpy
(
wwo
->
mixer
,
mixer
);
TRACE
(
"using mixer device
\"
%s
\"\n
"
,
wwo
->
mixer
);
if
(
snd_hctl_open
(
&
wwo
->
hctl
,
wwo
->
mixer
,
0
)
>=
0
)
snd_hctl_load
(
wwo
->
hctl
);
else
wwo
->
hctl
=
NULL
;
...
...
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