Lines Matching refs:cues

803 						if (mark_count > 2500) /* 2500 is close to the largest number of cues possible because of block sizes */
809 if (psf->cues)
810 { free (psf->cues) ;
811 psf->cues = NULL ;
813 if ((psf->cues = psf_cues_alloc (mark_count)) == NULL)
823 psf->cues->cue_points [n].indx = mark_id ;
824 psf->cues->cue_points [n].position = 0 ;
825 psf->cues->cue_points [n].fcc_chunk = MAKE_MARKER ('d', 'a', 't', 'a') ; /* always data */
826 psf->cues->cue_points [n].chunk_start = 0 ;
827 psf->cues->cue_points [n].block_start = 0 ;
828 psf->cues->cue_points [n].sample_offset = position ;
844 psf_strlcpy (psf->cues->cue_points [n].name, sizeof (psf->cues->cue_points [n].name), ubuf.cbuf) ;
937 /* The markers that correspond to loop positions can now be removed from cues struct */
938 if (psf->cues->cue_count > (uint32_t) (psf->instrument->loop_count * 2))
941 for (j = 0 ; j < psf->cues->cue_count - (uint32_t) (psf->instrument->loop_count * 2) ; j ++)
942 { /* This simply copies the information in cues above loop positions and writes it at current count instead */
943 psf->cues->cue_points [j].indx = psf->cues->cue_points [j + psf->instrument->loop_count * 2].indx ;
944 psf->cues->cue_points [j].position = psf->cues->cue_points [j + psf->instrument->loop_count * 2].position ;
945 psf->cues->cue_points [j].fcc_chunk = psf->cues->cue_points [j + psf->instrument->loop_count * 2].fcc_chunk ;
946 psf->cues->cue_points [j].chunk_start = psf->cues->cue_points [j + psf->instrument->loop_count * 2].chunk_start ;
947 psf->cues->cue_points [j].block_start = psf->cues->cue_points [j + psf->instrument->loop_count * 2].block_start ;
948 psf->cues->cue_points [j].sample_offset = psf->cues->cue_points [j + psf->instrument->loop_count * 2].sample_offset ;
950 psf->cues->cue_points [j].name [str_index] = psf->cues->cue_points [j + psf->instrument->loop_count * 2].name [str_index] ;
952 psf->cues->cue_count -= psf->instrument->loop_count * 2 ;
954 { /* All the cues were in fact loop positions so we can actually remove the cues altogether */
955 free (psf->cues) ;
956 psf->cues = NULL ;
1437 if (psf->instrument != NULL && psf->cues != NULL)
1443 else if (psf->instrument == NULL && psf->cues != NULL)
1444 { /* There are cues but no loops */
1449 for (idx = 0 ; idx < psf->cues->cue_count ; idx++)
1450 { stringLength = strlen (psf->cues->cue_points [idx].name) + 1 ; /* We'll count the first byte also of every pascal string */
1455 BHWm (MARK_MARKER), BHW4 (2 + psf->cues->cue_count * (2 + 4) + totalStringLength), BHW2 (psf->cues->cue_count)) ;
1457 for (idx = 0 ; idx < psf->cues->cue_count ; idx++)
1458 psf_binheader_writef (psf, "E24p", BHW2 (psf->cues->cue_points [idx].indx), BHW4 (psf->cues->cue_points [idx].sample_offset), BHWp (psf->cues->cue_points [idx].name)) ;