Lines Matching defs:track

73 /*! \brief Keeps track of track information.
75 struct track : public list_item {
77 track(uint32 index, off_t startLBA, uint8 control, uint8 adr,
78 track* next = NULL)
95 /*! \brief Keeps track of session information.
212 TRACE((" control = %d (%s track, copy %s)\n", entries[i].control,
611 // track with the end of session.
612 track* track = (struct track*)session->track_list.First();
613 if (track != NULL) {
617 off_t startLBA = track->start_lba;
638 for (track* track = (struct track*)session->track_list.First();
639 track; track = (struct track*)track->next) {
645 off_t startLBA = track->start_lba;
648 B_PRId64 " for data track assuming 0\n",
653 off_t endLBA = track->next
654 ? ((struct track*)track->next)->start_lba
687 TRACE((" first track hint: %d\n", session->first_track_hint));
688 TRACE((" last track hint: %d\n", session->last_track_hint));
696 track* track = (struct track*)session->track_list.First();
697 while (track != NULL) {
698 TRACE((" track %" B_PRId32 ":\n", track->index));
699 TRACE((" start_lba: %" B_PRId64 "\n", track->start_lba));
700 track = (struct track*)track->next;
733 TRACE(("%s: Single audio session, checking for data track\n",
745 // Get track two and use it's start as
764 TRACE(("%s: first track is data, adjusted TOC\n",
768 // Change the track to session two.
776 // Use the beginning of the data track as the
783 TRACE(("%s: last track is data, adjusted TOC\n",
817 // first track hint
824 WARN(("%s: warning: illegal first track hint %d found "
829 WARN(("%s: warning: duplicated first track hint values "
836 // last track hint
843 WARN(("%s: warning: illegal last track hint %d found "
848 WARN(("%s: warning: duplicate last track hint values found "
890 // Anything else had better be a valid track number,
893 // Create and add the track. We'll weed out any duplicates
902 track* track = new(std::nothrow) struct track(trackIndex,
904 if (track == NULL)
907 session->track_list.Add(track);
919 /*! \brief Bubble sorts the session list and each session's track lists,
948 (all tracks are checked as a single sequence, since track
977 // empty track list
978 track* track = (struct track*)session->track_list.First();
979 if (track == NULL) {
987 // incorrect first track hint
989 && session->first_track_hint != track->index) {
991 "#%" B_PRId32 ": first track hint (%d) doesn't match actual "
992 "first track (%" B_PRId32 ")\n", kModuleDebugName,
993 session->index, session->first_track_hint, track->index));
996 // incorrect last track hint
997 struct track* last = (struct track*)session->track_list.Last();
1001 "#%" B_PRId32 ": last track hint (%d) doesn't match actual "
1002 "last track (%" B_PRId32 ")\n", kModuleDebugName,
1015 for (; track; track = (struct track*)track->next) {
1016 // invalid track sequence
1017 if (lastTrackIndex + 1 != track->index) {
1019 "for track #%" B_PRId32 " is out of sequence (should have "
1020 "been #%" B_PRId32 ")\n", kModuleDebugName, track->index,
1023 lastTrackIndex = track->index;
1026 if (track->control != session->control) {
1028 "for track #%" B_PRId32 " (%d, %s track, copy %s) does not "
1030 "session, copy %s)\n", kModuleDebugName, track->index,
1031 track->control,
1032 (track->control & kControlDataTrack ? "data" : "audio"),
1033 (track->control & kControlCopyPermitted
1042 if (track->adr != session->adr) {
1044 "for track #%" B_PRId32 " (adr = %d) does not match adr "
1046 kModuleDebugName, track->index, track->adr, session->index,