Lines Matching refs:vol
742 int vol; in calc_volume() local
753 vol = (vp->velocity * main_vol * expression_vol) / (127*127); in calc_volume()
754 vol = vol * vp->reg.amplitude / 127; in calc_volume()
756 LIMITVALUE(vol, 0, 127); in calc_volume()
759 vol = snd_sf_vol_table[vol]; in calc_volume()
765 vol = voltab1[main_vol] + voltab2[vp->velocity]; in calc_volume()
766 vol = (vol * 8) / 3; in calc_volume()
767 vol += vp->reg.attenuation; in calc_volume()
768 vol += ((0x100 - vol) * expressiontab[expression_vol])/128; in calc_volume()
773 vol += snd_sf_vol_table[master_vol]; in calc_volume()
774 vol += port->volume_atten; in calc_volume()
779 vol += fx->val[EMUX_FX_ATTEN]; in calc_volume()
783 LIMITVALUE(vol, 0, 255); in calc_volume()
784 if (vp->avol == vol) in calc_volume()
787 vp->avol = vol; in calc_volume()