Lines Matching defs:nvoices
537 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) {
539 hdr.nvoices);
543 if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) {
545 "patch length(%ld) is smaller than nvoices(%d)\n",
546 count, hdr.nvoices);
567 for (i = 0; i < hdr.nvoices; i++) {
1236 int nvoices;
1248 nvoices = search_zones(sflist, notep, vel, preset, bank,
1250 if (! nvoices) {
1252 nvoices = search_zones(sflist, notep, vel,
1257 return nvoices;
1290 int nvoices;
1293 nvoices = 0;
1307 nvoices = search_zones(sflist, &key, vel,
1310 if (nvoices > 0)
1314 table[nvoices++] = zp;
1315 if (nvoices >= max_layers)
1320 return nvoices;