Home
last modified time | relevance | path

Searched refs:main_vol (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/sound/oss/
Dopl3.c352 static void calc_vol(unsigned char *regbyte, int volume, int main_vol) in calc_vol() argument
356 if (main_vol > 127) in calc_vol()
357 main_vol = 127; in calc_vol()
358 volume = (volume * main_vol) / 127; in calc_vol()
371 static void set_voice_volume(int voice, int volume, int main_vol) in set_voice_volume() argument
398 calc_vol(&vol1, volume, main_vol); in set_voice_volume()
399 calc_vol(&vol2, volume, main_vol); in set_voice_volume()
403 calc_vol(&vol2, volume, main_vol); in set_voice_volume()
429 calc_vol(&vol4, volume, main_vol); in set_voice_volume()
433 calc_vol(&vol2, volume, main_vol); in set_voice_volume()
[all …]
/linux-2.6.39/sound/synth/emux/
Demux_synth.c758 int main_vol, expression_vol, master_vol; in calc_volume() local
767 main_vol = chan->control[MIDI_CTL_MSB_MAIN_VOLUME]; in calc_volume()
768 vol = (vp->velocity * main_vol * expression_vol) / (127*127); in calc_volume()
777 main_vol = chan->control[MIDI_CTL_MSB_MAIN_VOLUME] * vp->reg.amplitude / 127; in calc_volume()
778 LIMITVALUE(main_vol, 0, 127); in calc_volume()
780 vol = voltab1[main_vol] + voltab2[vp->velocity]; in calc_volume()