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); vright = mixer_calc_volume(elem, mixer_volume_delta[MIXER_CHN_RIGHT], type, chn_right);
vbalance += vright; vbalance += vright;
vbalance /= 2; vbalance /= 2;
} else } else {
vright = vleft; vright = vleft;
if (vleft >= 0 && vright >= 0) { }
if (joined) { if (joined) {
for (chn = 0; chn < SND_MIXER_SCHN_LAST; chn++) for (chn = 0; chn < SND_MIXER_SCHN_LAST; chn++)
if (type != MIXER_ELEM_CAPTURE) { if (type != MIXER_ELEM_CAPTURE) {
@ -617,7 +618,6 @@ mixer_write_cbar (int elem_index)
} }
} }
} }
}
} }
/* mute /* mute