Lines Matching refs:tr
354 FLAC__StreamMetadata_CueSheet_Track *tr;
358 tr = &block->data.cue_sheet.tracks[track_num];
360 if(tr->num_indices != 0) {
361 FLAC__ASSERT(0 != tr->indices);
364 if(0 != tr->indices) {
365 free(tr->indices);
366 tr->indices = 0;
370 tr->indices = (FLAC__StreamMetadata_CueSheet_Index*)realloc(tr->indices, sizeof(FLAC__StreamMetadata_CueSheet_Index)*num);
371 FLAC__ASSERT(0 != tr->indices);
372 if(num > tr->num_indices)
373 memset(tr->indices+tr->num_indices, 0, sizeof(FLAC__StreamMetadata_CueSheet_Index)*(num-tr->num_indices));
376 tr->num_indices = num;
382 FLAC__StreamMetadata_CueSheet_Track *tr;
386 tr = &block->data.cue_sheet.tracks[track_num];
388 FLAC__ASSERT(pos < tr->num_indices);
390 tr->indices[pos] = index;
397 FLAC__StreamMetadata_CueSheet_Track *tr;
401 tr = &block->data.cue_sheet.tracks[track_num];
403 FLAC__ASSERT(pos <= tr->num_indices);
405 tr_resize_(block, track_num, tr->num_indices+1);
406 memmove(&tr->indices[pos+1], &tr->indices[pos], sizeof(FLAC__StreamMetadata_CueSheet_Index)*(tr->num_indices-1-pos));
413 FLAC__StreamMetadata_CueSheet_Track *tr;
417 tr = &block->data.cue_sheet.tracks[track_num];
419 FLAC__ASSERT(pos <= tr->num_indices);
421 memmove(&tr->indices[pos], &tr->indices[pos+1], sizeof(FLAC__StreamMetadata_CueSheet_Index)*(tr->num_indices-pos-1));
422 tr_resize_(block, track_num, tr->num_indices-1);