Lines Matching refs:index
892 /* search an index for specified time from given time table */
1166 int index;
1184 if ((index = get_index(cur->bank, cur->instr, cur->v.low)) < 0)
1187 cur->next_instr = sflist->presets[index]; /* preset table link */
1188 sflist->presets[index] = cur;
1197 int index;
1200 if ((index = get_index(zp->bank, zp->instr, zp->v.low)) < 0)
1202 for (p = sflist->presets[index]; p; p = p->next_instr) {
1257 int index;
1260 if ((index = get_index(bank, preset, key)) < 0)
1262 for (zp = sflist->presets[index]; zp; zp = zp->next_instr) {
1313 /* calculate the index of preset table:
1316 * if the index is out of range, return -1.
1321 int index;
1323 index = key + SF_MAX_INSTRUMENTS;
1325 index = instr;
1326 index = index % SF_MAX_PRESETS;
1327 if (index < 0)
1329 return index;