Searched refs:cue_count (Results 1 – 11 of 11) sorted by relevance
/third_party/libsnd/src/ |
D | common.c | 1258 psf_cues_alloc (uint32_t cue_count) in psf_cues_alloc() argument 1259 { SF_CUES *pcues = calloc (1, SF_CUES_VAR_SIZE (cue_count)) ; in psf_cues_alloc() 1261 pcues->cue_count = cue_count ; in psf_cues_alloc() 1270 if (pcues->cue_count <= SF_CUES_COUNT (datasize)) in psf_cues_dup() 1272 pnew = psf_cues_alloc (pcues->cue_count) ; in psf_cues_dup() 1273 memcpy (pnew, pcues, SF_CUES_VAR_SIZE (pcues->cue_count)) ; in psf_cues_dup() 1283 { uint32_t cue_count = SF_CUES_COUNT (datasize) ; in psf_get_cues() local 1285 cue_count = SF_MIN (cue_count, psf->cues->cue_count) ; in psf_get_cues() 1286 memcpy (data, psf->cues, SF_CUES_VAR_SIZE (cue_count)) ; in psf_get_cues() 1287 ((SF_CUES*) data)->cue_count = cue_count ; in psf_get_cues()
|
D | wav.c | 470 { uint32_t thisread, bytesread, cue_count, position, offset ; in wav_read_header() local 473 bytesread = psf_binheader_readf (psf, "4", &cue_count) ; in wav_read_header() 476 …if (cue_count > 2500) /* 2500 is close to the largest number of cues possible because of block siz… in wav_read_header() 477 { psf_log_printf (psf, " Count : %u (skipping)\n", cue_count) ; in wav_read_header() 482 psf_log_printf (psf, " Count : %d\n", cue_count) ; in wav_read_header() 489 if ((psf->cues = psf_cues_alloc (cue_count)) == NULL) in wav_read_header() 494 while (cue_count) in wav_read_header() 516 cue_count -- ; in wav_read_header() 1133 …psf, "em44", BHWm (cue_MARKER), BHW4 (4 + psf->cues->cue_count * 6 * 4), BHW4 (psf->cues->cue_coun… in wav_write_header() 1135 for (k = 0 ; k < psf->cues->cue_count ; k++) in wav_write_header()
|
D | aiff.c | 938 if (psf->cues->cue_count > (uint32_t) (psf->instrument->loop_count * 2)) in aiff_read_header() 941 for (j = 0 ; j < psf->cues->cue_count - (uint32_t) (psf->instrument->loop_count * 2) ; j ++) in aiff_read_header() 952 psf->cues->cue_count -= psf->instrument->loop_count * 2 ; in aiff_read_header() 1449 for (idx = 0 ; idx < psf->cues->cue_count ; idx++) in aiff_write_header() 1455 …BHWm (MARK_MARKER), BHW4 (2 + psf->cues->cue_count * (2 + 4) + totalStringLength), BHW2 (psf->cues… in aiff_write_header() 1457 for (idx = 0 ; idx < psf->cues->cue_count ; idx++) in aiff_write_header()
|
D | wavlike.c | 1042 while (i < psf->cues->cue_count && psf->cues->cue_points [i].indx != mark_id) in wavlike_subchunk_parse() 1045 if (i < psf->cues->cue_count) in wavlike_subchunk_parse()
|
D | common.h | 1038 SF_CUES * psf_cues_alloc (uint32_t cue_count) ;
|
D | sndfile.c | 1277 { *((uint32_t *) data) = psf->cues->cue_count ; in sf_command()
|
/third_party/libsnd/tests/ |
D | cue_test.c | 71 for (i = 0; i < info->cue_count; i++) in test_cues() 98 for (i = 0; i < info->cue_count; i++) in print_cues()
|
D | command_test.c | 875 printf ("W Cue count : %d\n", write_cue->cue_count) ; in cue_compare() 876 if (write_cue->cue_count > 0) in cue_compare() 878 if (write_cue->cue_count > 2) /* print last if at least 2 */ in cue_compare() 879 print_cue (write_cue, write_cue->cue_count - 1) ; in cue_compare() 881 printf ("R Cue count : %d\n", read_cue->cue_count) ; in cue_compare() 882 if (read_cue->cue_count > 0) in cue_compare() 884 if (read_cue->cue_count > 2) /* print last if at least 2 */ in cue_compare() 885 print_cue (read_cue, read_cue->cue_count - 1) ; in cue_compare() 903 sf_command (sndfile, SFC_GET_CUE_COUNT, &cues.cue_count, sizeof (cues.cue_count)) != SF_TRUE, in cue_rw_test() 908 cues.cue_count != 3, in cue_rw_test() [all …]
|
/third_party/libsnd/include/ |
D | sndfile.h | 398 uint32_t cue_count; \
|
D | sndfile.h.in | 433 { uint32_t cue_count ; \
|
/third_party/libsnd/docs/ |
D | command.md | 1711 uint32_t cue_count ; 1712 sf_command (sndfile, SFC_GET_CUE_COUNT, &cue_count, sizeof (cue_count)) ; 1742 { int cue_count ;
|