Lines Matching refs:nvoices
545 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) {
547 hdr.nvoices);
551 if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) {
553 "patch length(%ld) is smaller than nvoices(%d)\n",
554 count, hdr.nvoices);
575 for (i = 0; i < hdr.nvoices; i++) {
1221 int nvoices;
1233 nvoices = search_zones(sflist, notep, vel, preset, bank,
1235 if (! nvoices) {
1237 nvoices = search_zones(sflist, notep, vel,
1242 return nvoices;
1274 int nvoices;
1277 nvoices = 0;
1291 nvoices = search_zones(sflist, &key, vel,
1294 if (nvoices > 0)
1298 table[nvoices++] = zp;
1299 if (nvoices >= max_layers)
1304 return nvoices;