mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 13:06:32 +01:00
Volume can be lower than zero, too
This commit is contained in:
parent
8999f66b8f
commit
04020b86d1
1 changed files with 3 additions and 3 deletions
|
@ -581,9 +581,10 @@ mixer_write_cbar (int elem_index)
|
|||
vright = mixer_calc_volume(elem, mixer_volume_delta[MIXER_CHN_RIGHT], type, chn_right);
|
||||
vbalance += vright;
|
||||
vbalance /= 2;
|
||||
} else
|
||||
} else {
|
||||
vright = vleft;
|
||||
if (vleft >= 0 && vright >= 0) {
|
||||
}
|
||||
|
||||
if (joined) {
|
||||
for (chn = 0; chn < SND_MIXER_SCHN_LAST; chn++)
|
||||
if (type != MIXER_ELEM_CAPTURE) {
|
||||
|
@ -617,7 +618,6 @@ mixer_write_cbar (int elem_index)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* mute
|
||||
|
|
Loading…
Reference in a new issue