• Home
  • Raw
  • Download

Lines Matching refs:num_tracks

324 	object->length += object->data.cue_sheet.num_tracks * (  in cuesheet_calculate_length_()
334 for (i = 0; i < object->data.cue_sheet.num_tracks; i++) { in cuesheet_calculate_length_()
350 static FLAC__StreamMetadata_CueSheet_Track *cuesheet_track_array_new_(unsigned num_tracks) in cuesheet_track_array_new_() argument
352 FLAC__ASSERT(num_tracks > 0); in cuesheet_track_array_new_()
354 return safe_calloc_(num_tracks, sizeof(FLAC__StreamMetadata_CueSheet_Track)); in cuesheet_track_array_new_()
357 …uesheet_track_array_delete_(FLAC__StreamMetadata_CueSheet_Track *object_array, unsigned num_tracks) in cuesheet_track_array_delete_() argument
361 FLAC__ASSERT(object_array != NULL && num_tracks > 0); in cuesheet_track_array_delete_()
363 for (i = 0; i < num_tracks; i++) { in cuesheet_track_array_delete_()
373 …eet_track_array_copy_(const FLAC__StreamMetadata_CueSheet_Track *object_array, unsigned num_tracks) in cuesheet_track_array_copy_() argument
378 FLAC__ASSERT(num_tracks > 0); in cuesheet_track_array_copy_()
380 return_array = cuesheet_track_array_new_(num_tracks); in cuesheet_track_array_copy_()
385 for (i = 0; i < num_tracks; i++) { in cuesheet_track_array_copy_()
387 cuesheet_track_array_delete_(return_array, num_tracks); in cuesheet_track_array_copy_()
582 if (object->data.cue_sheet.num_tracks == 0) { in FLAC__metadata_object_clone()
587 …cks = cuesheet_track_array_copy_(object->data.cue_sheet.tracks, object->data.cue_sheet.num_tracks); in FLAC__metadata_object_clone()
660 FLAC__ASSERT(object->data.cue_sheet.num_tracks > 0); in FLAC__metadata_object_delete_data()
661 cuesheet_track_array_delete_(object->data.cue_sheet.tracks, object->data.cue_sheet.num_tracks); in FLAC__metadata_object_delete_data()
663 object->data.cue_sheet.num_tracks = 0; in FLAC__metadata_object_delete_data()
798 if (block1->num_tracks != block2->num_tracks) in compare_block_data_cuesheet_()
802 FLAC__ASSERT(block1->num_tracks > 0); in compare_block_data_cuesheet_()
803 for (i = 0; i < block1->num_tracks; i++) { in compare_block_data_cuesheet_()
1480 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_resize_indices()
1525 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_insert_index()
1554 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_delete_index()
1573 FLAC__ASSERT(object->data.cue_sheet.num_tracks == 0); in FLAC__metadata_object_cuesheet_resize_tracks()
1580 …const size_t old_size = object->data.cue_sheet.num_tracks * sizeof(FLAC__StreamMetadata_CueSheet_T… in FLAC__metadata_object_cuesheet_resize_tracks()
1587 FLAC__ASSERT(object->data.cue_sheet.num_tracks > 0); in FLAC__metadata_object_cuesheet_resize_tracks()
1590 if (new_num_tracks < object->data.cue_sheet.num_tracks) { in FLAC__metadata_object_cuesheet_resize_tracks()
1592 for (i = new_num_tracks; i < object->data.cue_sheet.num_tracks; i++) in FLAC__metadata_object_cuesheet_resize_tracks()
1605 … memset(object->data.cue_sheet.tracks + object->data.cue_sheet.num_tracks, 0, new_size - old_size); in FLAC__metadata_object_cuesheet_resize_tracks()
1608 object->data.cue_sheet.num_tracks = new_num_tracks; in FLAC__metadata_object_cuesheet_resize_tracks()
1617 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_set_track()
1628 FLAC__ASSERT(track_num <= object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_insert_track()
1632 if (!FLAC__metadata_object_cuesheet_resize_tracks(object, cs->num_tracks+1)) in FLAC__metadata_object_cuesheet_insert_track()
1636 … &cs->tracks[track_num], sizeof(FLAC__StreamMetadata_CueSheet_Track)*(cs->num_tracks-1-track_num)); in FLAC__metadata_object_cuesheet_insert_track()
1656 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_delete_track()
1664 …cs->tracks[track_num+1], sizeof(FLAC__StreamMetadata_CueSheet_Track)*(cs->num_tracks-track_num-1)); in FLAC__metadata_object_cuesheet_delete_track()
1665 cs->tracks[cs->num_tracks-1].num_indices = 0; in FLAC__metadata_object_cuesheet_delete_track()
1666 cs->tracks[cs->num_tracks-1].indices = 0; in FLAC__metadata_object_cuesheet_delete_track()
1668 return FLAC__metadata_object_cuesheet_resize_tracks(object, cs->num_tracks-1); in FLAC__metadata_object_cuesheet_delete_track()
1681 if (track >= (cs->num_tracks-1) || cs->tracks[track].num_indices < 1) in get_index_01_offset_()
1713 if (cs->num_tracks < 2) /* need at least one real track and the lead-out track */ in FLAC__metadata_object_cuesheet_calculate_cddb_id()
1718 for (i = 0; i < (cs->num_tracks-1); i++) /* -1 to avoid counting the lead-out */ in FLAC__metadata_object_cuesheet_calculate_cddb_id()
1720 …length = (FLAC__uint32)((cs->tracks[cs->num_tracks-1].offset+cs->lead_in) / 44100) - (FLAC__uint32… in FLAC__metadata_object_cuesheet_calculate_cddb_id()
1722 return (sum % 0xFF) << 24 | length << 8 | (FLAC__uint32)(cs->num_tracks-1); in FLAC__metadata_object_cuesheet_calculate_cddb_id()