Home
last modified time | relevance | path

Searched refs:cue_count (Results 1 – 10 of 10) sorted by relevance

/third_party/libsnd/src/
Dcommon.c1325 psf_cues_alloc (uint32_t cue_count) in psf_cues_alloc() argument
1326 { SF_CUES *pcues = calloc (1, SF_CUES_VAR_SIZE (cue_count)) ; in psf_cues_alloc()
1328 { pcues->cue_count = cue_count ; in psf_cues_alloc()
1338 if (pcues->cue_count <= SF_CUES_COUNT (datasize)) in psf_cues_dup()
1340 pnew = psf_cues_alloc (pcues->cue_count) ; in psf_cues_dup()
1341 memcpy (pnew, pcues, SF_CUES_VAR_SIZE (pcues->cue_count)) ; in psf_cues_dup()
1351 { uint32_t cue_count = SF_CUES_COUNT (datasize) ; in psf_get_cues() local
1353 cue_count = SF_MIN (cue_count, psf->cues->cue_count) ; in psf_get_cues()
1354 memcpy (data, psf->cues, SF_CUES_VAR_SIZE (cue_count)) ; in psf_get_cues()
1355 ((SF_CUES*) data)->cue_count = cue_count ; in psf_get_cues()
Dwav.c485 { uint32_t thisread, bytesread, cue_count, position, offset ; in wav_read_header() local
488 bytesread = psf_binheader_readf (psf, "4", &cue_count) ; in wav_read_header()
491 …if (cue_count > 2500) /* 2500 is close to the largest number of cues possible because of block siz… in wav_read_header()
492 { psf_log_printf (psf, " Count : %u (skipping)\n", cue_count) ; in wav_read_header()
497 psf_log_printf (psf, " Count : %d\n", cue_count) ; in wav_read_header()
504 if ((psf->cues = psf_cues_alloc (cue_count)) == NULL) in wav_read_header()
509 while (cue_count) in wav_read_header()
531 cue_count -- ; in wav_read_header()
1214 …psf, "em44", BHWm (cue_MARKER), BHW4 (4 + psf->cues->cue_count * 6 * 4), BHW4 (psf->cues->cue_coun… in wav_write_header()
1216 for (k = 0 ; k < psf->cues->cue_count ; k++) in wav_write_header()
Daiff.c938 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()
Dwavlike.c1065 while (i < psf->cues->cue_count && psf->cues->cue_points [i].indx != mark_id) in wavlike_subchunk_parse()
1068 if (i < psf->cues->cue_count) in wavlike_subchunk_parse()
Dcommon.h985 SF_CUES * psf_cues_alloc (uint32_t cue_count) ;
Dsndfile.c1365 { *((uint32_t *) data) = psf->cues->cue_count ; in sf_command()
/third_party/libsnd/tests/
Dcue_test.c71 for (i = 0; i < info->cue_count; i++) in test_cues()
98 for (i = 0; i < info->cue_count; i++) in print_cues()
Dcommand_test.c875 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/
Dsndfile.h452 { uint32_t cue_count ; \
/third_party/libsnd/docs/
Dcommand.md1738 uint32_t cue_count ;
1739 sf_command (sndfile, SFC_GET_CUE_COUNT, &cue_count, sizeof (cue_count)) ;
1769 { int cue_count ;