Home
last modified time | relevance | path

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

/sound/drivers/opl4/
Dopl4_synth.c371 int att; in snd_opl4_update_volume() local
373 att = voice->sound->tone_attenuate; in snd_opl4_update_volume()
374 att += snd_opl4_volume_table[opl4->chset->gs_master_volume & 0x7f]; in snd_opl4_update_volume()
375 att += snd_opl4_volume_table[voice->chan->gm_volume & 0x7f]; in snd_opl4_update_volume()
376 att += snd_opl4_volume_table[voice->chan->gm_expression & 0x7f]; in snd_opl4_update_volume()
377 att += snd_opl4_volume_table[voice->velocity]; in snd_opl4_update_volume()
378 att = 0x7f - (0x7f - att) * (voice->sound->volume_factor) / 0xfe - volume_boost; in snd_opl4_update_volume()
379 if (att < 0) in snd_opl4_update_volume()
380 att = 0; in snd_opl4_update_volume()
381 else if (att > 0x7e) in snd_opl4_update_volume()
[all …]