Lines Matching refs:loop_count
1226 psf_binheader_writef (psf, "m4", BHWm (smpl_MARKER), BHW4 (9 * 4 + psf->instrument->loop_count * 6 * 4)) ;
1233 psf_binheader_writef (psf, "44", BHW4 (psf->instrument->loop_count), BHW4 (0)) ;
1236 if (psf->instrument->loop_count > ARRAY_LEN (psf->instrument->loops))
1237 psf->instrument->loop_count = ARRAY_LEN (psf->instrument->loops) ;
1239 for (tmp = 0 ; tmp < psf->instrument->loop_count ; tmp++)
1378 uint32_t thisread, bytesread = 0, dword, sampler_data, loop_count, actually_loop_count = 0 ;
1414 bytesread += psf_binheader_readf (psf, "4", &loop_count) ;
1415 psf_log_printf (psf, " Loop Count : %u\n", loop_count) ;
1417 if (loop_count == 0 && chunklen == bytesread)
1433 psf->instrument->loop_count = loop_count ;
1435 for (j = 0 ; loop_count > 0 && chunklen - bytesread >= 24 ; j ++)
1481 psf_log_printf (psf, "*** Warning, actual Loop Points count exceeds %u, changing Loop Count from %u to %u\n", ARRAY_LEN (psf->instrument->loops), loop_count, ARRAY_LEN (psf->instrument->loops)) ;
1482 psf->instrument->loop_count = ARRAY_LEN (psf->instrument->loops) ;
1484 else if (loop_count != actually_loop_count)
1485 { psf_log_printf (psf, "*** Warning, actual Loop Points count != Loop Count, changing Loop Count from %u to %u\n", loop_count, actually_loop_count) ;
1486 psf->instrument->loop_count = actually_loop_count ;