mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 18:16:31 +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) {
|
||||
|
@ -618,7 +619,6 @@ mixer_write_cbar (int elem_index)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* mute
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue