Volume can be lower than zero, too

This commit is contained in:
Jaroslav Kysela 2003-05-28 07:25:26 +00:00
parent 8999f66b8f
commit 04020b86d1

View file

@ -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
*/