Lines Matching defs:nvoices
533 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) {
535 hdr.nvoices);
539 if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) {
541 "patch length(%ld) is smaller than nvoices(%d)\n",
542 count, hdr.nvoices);
563 for (i = 0; i < hdr.nvoices; i++) {
1226 int nvoices;
1238 nvoices = search_zones(sflist, notep, vel, preset, bank,
1240 if (! nvoices) {
1242 nvoices = search_zones(sflist, notep, vel,
1247 return nvoices;
1279 int nvoices;
1282 nvoices = 0;
1296 nvoices = search_zones(sflist, &key, vel,
1299 if (nvoices > 0)
1303 table[nvoices++] = zp;
1304 if (nvoices >= max_layers)
1309 return nvoices;