Lines Matching refs:bank
85 unsigned char bank, instr; /* preset number information */ member
137 int bank; /* current tone bank */ member
369 static int awe_search_key(int bank, int preset, int note);
370 static awe_voice_list *awe_search_instr(int bank, int preset, int note);
1826 if (cp->bank != AWE_DRUM_BANK && ((awe_voice_parm_block*)(&ap->parm))->volatk < 0x7d) { in awe_calc_volume()
1947 cp->bank = AWE_DRUM_BANK; in awe_channel_init()
1950 cp->bank = ctrls[AWE_MD_DEF_BANK]; in awe_channel_init()
2253 awe_search_key(int bank, int preset, int note) in awe_search_key() argument
2258 if (bank == AWE_DRUM_BANK) in awe_search_key()
2261 key = bank + preset; in awe_search_key()
2273 awe_search_instr(int bank, int preset, int note) in awe_search_instr() argument
2278 key = awe_search_key(bank, preset, note); in awe_search_instr()
2280 if (p->instr == preset && p->bank == bank) in awe_search_instr()
2283 key2 = awe_search_key(bank, preset, 0); /* search default */ in awe_search_instr()
2287 if (p->instr == preset && p->bank == bank) in awe_search_instr()
2677 cinfo->bank = value; in awe_controller()
2678 if (cinfo->bank == AWE_DRUM_BANK) in awe_controller()
3001 p->bank == rec->bank && in info_duplicated()
3173 rec->bank = map.map_bank; in awe_load_map()
3245 remove_info(sf_list *sf, int bank, int instr) in remove_info() argument
3254 p->bank == bank && p->instr == instr) { in remove_info()
3314 rec->bank == hdr.bank && in awe_load_info()
3321 remove_info(sf, hdr.bank, hdr.instr); in awe_load_info()
3331 rec->bank = hdr.bank; in awe_load_info()
3365 unsigned char bank, instr; in awe_remove_info() local
3373 bank = ((unsigned short)patch->optarg >> 8) & 0xff; in awe_remove_info()
3375 if (! remove_info(sf, bank, instr)) in awe_remove_info()
3794 vrec->bank = ctrls[AWE_MD_GUS_BANK]; in awe_load_guspatch()
3850 if (rec->bank == AWE_DRUM_BANK) { in purge_old_list()
3879 key = awe_search_key(rec->bank, rec->instr, rec->v.low); in add_info_list()
3883 if (cur->instr == rec->instr && cur->bank == rec->bank) { in add_info_list()
4065 really_alloc_voices(int bank, int instr, int *note, int velocity, awe_voice_info **vlist) in really_alloc_voices() argument
4072 vrec = awe_search_instr(bank, instr, *note); in really_alloc_voices()
4075 if (bank == AWE_DRUM_BANK) in really_alloc_voices()
4077 vrec = awe_search_instr(bank, ctrls[AWE_MD_DEF_DRUM], *note); in really_alloc_voices()
4084 if (bank == AWE_DRUM_BANK && ctrls[AWE_MD_DEF_DRUM] != 0) in really_alloc_voices()
4086 vrec = awe_search_instr(bank, 0, *note); in really_alloc_voices()
4087 else if (bank != AWE_DRUM_BANK && ctrls[AWE_MD_DEF_BANK] != 0) in really_alloc_voices()
4095 bank = vlist[0]->end; in really_alloc_voices()
4113 int i, v, nvoices, bank; in awe_alloc_multi_voices() local
4117 bank = AWE_DRUM_BANK; /* always search drumset */ in awe_alloc_multi_voices()
4119 bank = channels[ch].bank; in awe_alloc_multi_voices()
4122 nvoices = really_alloc_voices(bank, channels[ch].instr, in awe_alloc_multi_voices()
4215 int ch, nvoices, bank; in awe_alloc_one_voice() local
4220 bank = AWE_DRUM_BANK; /* always search drumset */ in awe_alloc_one_voice()
4222 bank = voices[voice].cinfo->bank; in awe_alloc_one_voice()
4224 nvoices = really_alloc_voices(bank, voices[voice].cinfo->instr, in awe_alloc_one_voice()
4268 channels[chn].bank = info->controllers[CTL_BANK_SELECT]; in awe_setup_voice()