Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
646d0d12
Commit
646d0d12
authored
Mar 10, 2008
by
Jan Djärv
Browse files
(alsa_configure): Declare vol at beginning of block.
parent
2f9a87f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sound.c
src/sound.c
+2
-2
No files found.
src/sound.c
View file @
646d0d12
...
...
@@ -1105,9 +1105,9 @@ alsa_configure (sd)
{
if
(
snd_mixer_selem_has_playback_volume
(
e
))
{
long
pmin
,
pmax
;
long
pmin
,
pmax
,
vol
;
snd_mixer_selem_get_playback_volume_range
(
e
,
&
pmin
,
&
pmax
);
long
vol
=
pmin
+
(
sd
->
volume
*
(
pmax
-
pmin
))
/
100
;
vol
=
pmin
+
(
sd
->
volume
*
(
pmax
-
pmin
))
/
100
;
for
(
chn
=
0
;
chn
<=
SND_MIXER_SCHN_LAST
;
chn
++
)
snd_mixer_selem_set_playback_volume
(
e
,
chn
,
vol
);
...
...
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