Lines Matching refs:cue_sheet

325 	object->length += object->data.cue_sheet.num_tracks * (  in cuesheet_calculate_length_()
335 for(i = 0; i < object->data.cue_sheet.num_tracks; i++) { in cuesheet_calculate_length_()
336 object->length += object->data.cue_sheet.tracks[i].num_indices * ( in cuesheet_calculate_length_()
586 memcpy(&to->data.cue_sheet, &object->data.cue_sheet, sizeof(FLAC__StreamMetadata_CueSheet)); in FLAC__metadata_object_clone()
587 if(object->data.cue_sheet.num_tracks == 0) { in FLAC__metadata_object_clone()
588 FLAC__ASSERT(0 == object->data.cue_sheet.tracks); in FLAC__metadata_object_clone()
591 FLAC__ASSERT(0 != object->data.cue_sheet.tracks); in FLAC__metadata_object_clone()
592 …to->data.cue_sheet.tracks = cuesheet_track_array_copy_(object->data.cue_sheet.tracks, object->data… in FLAC__metadata_object_clone()
593 if(0 == to->data.cue_sheet.tracks) { in FLAC__metadata_object_clone()
662 if(0 != object->data.cue_sheet.tracks) { in FLAC__metadata_object_delete_data()
663 FLAC__ASSERT(object->data.cue_sheet.num_tracks > 0); in FLAC__metadata_object_delete_data()
664 cuesheet_track_array_delete_(object->data.cue_sheet.tracks, object->data.cue_sheet.num_tracks); in FLAC__metadata_object_delete_data()
895 return compare_block_data_cuesheet_(&block1->data.cue_sheet, &block2->data.cue_sheet); in FLAC__metadata_object_is_equal()
1473 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_resize_indices()
1475 track = &object->data.cue_sheet.tracks[track_num]; in FLAC__metadata_object_cuesheet_track_resize_indices()
1518 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_insert_index()
1519 FLAC__ASSERT(index_num <= object->data.cue_sheet.tracks[track_num].num_indices); in FLAC__metadata_object_cuesheet_track_insert_index()
1521 track = &object->data.cue_sheet.tracks[track_num]; in FLAC__metadata_object_cuesheet_track_insert_index()
1547 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_delete_index()
1548 FLAC__ASSERT(index_num < object->data.cue_sheet.tracks[track_num].num_indices); in FLAC__metadata_object_cuesheet_track_delete_index()
1550 track = &object->data.cue_sheet.tracks[track_num]; in FLAC__metadata_object_cuesheet_track_delete_index()
1565 if(0 == object->data.cue_sheet.tracks) { in FLAC__metadata_object_cuesheet_resize_tracks()
1566 FLAC__ASSERT(object->data.cue_sheet.num_tracks == 0); in FLAC__metadata_object_cuesheet_resize_tracks()
1569 else if(0 == (object->data.cue_sheet.tracks = cuesheet_track_array_new_(new_num_tracks))) in FLAC__metadata_object_cuesheet_resize_tracks()
1573 …const size_t old_size = object->data.cue_sheet.num_tracks * sizeof(FLAC__StreamMetadata_CueSheet_T… in FLAC__metadata_object_cuesheet_resize_tracks()
1580 FLAC__ASSERT(object->data.cue_sheet.num_tracks > 0); in FLAC__metadata_object_cuesheet_resize_tracks()
1583 if(new_num_tracks < object->data.cue_sheet.num_tracks) { in FLAC__metadata_object_cuesheet_resize_tracks()
1585 for(i = new_num_tracks; i < object->data.cue_sheet.num_tracks; i++) in FLAC__metadata_object_cuesheet_resize_tracks()
1586 if(0 != object->data.cue_sheet.tracks[i].indices) in FLAC__metadata_object_cuesheet_resize_tracks()
1587 free(object->data.cue_sheet.tracks[i].indices); in FLAC__metadata_object_cuesheet_resize_tracks()
1591 free(object->data.cue_sheet.tracks); in FLAC__metadata_object_cuesheet_resize_tracks()
1592 object->data.cue_sheet.tracks = 0; in FLAC__metadata_object_cuesheet_resize_tracks()
1594 …else if(0 == (object->data.cue_sheet.tracks = (FLAC__StreamMetadata_CueSheet_Track*)realloc(object… in FLAC__metadata_object_cuesheet_resize_tracks()
1599 … memset(object->data.cue_sheet.tracks + object->data.cue_sheet.num_tracks, 0, new_size - old_size); in FLAC__metadata_object_cuesheet_resize_tracks()
1602 object->data.cue_sheet.num_tracks = new_num_tracks; in FLAC__metadata_object_cuesheet_resize_tracks()
1611 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_set_track()
1613 return cuesheet_set_track_(object, object->data.cue_sheet.tracks + track_num, track, copy); in FLAC__metadata_object_cuesheet_set_track()
1622 FLAC__ASSERT(track_num <= object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_insert_track()
1624 cs = &object->data.cue_sheet; in FLAC__metadata_object_cuesheet_insert_track()
1650 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_delete_track()
1652 cs = &object->data.cue_sheet; in FLAC__metadata_object_cuesheet_delete_track()
1671 return FLAC__format_cuesheet_is_legal(&object->data.cue_sheet, check_cd_da_subset, violation); in FLAC__metadata_object_cuesheet_is_legal()
1706 cs = &object->data.cue_sheet; in FLAC__metadata_object_cuesheet_calculate_cddb_id()