Logo Search packages:      
Sourcecode: vcdimager version File versions

int vcdinfo_get_track_msf ( const vcdinfo_obj_t *  obj,
track_t  track_num,
uint8_t *  min,
uint8_t *  sec,
uint8_t *  frame 
)

Return the starting MSF (minutes/secs/frames) for track number track_num in obj.

The IS0-9660 filesystem track has number 0. Tracks associated with playable entries numbers start at 1.

The "leadout" track is specified either by using track_num LEADOUT_TRACK or the total tracks+1. VCDINFO_NULL_LBA is returned on failure.

Return the starting MSF (minutes/secs/frames) for track number track_num in obj.

The IS0-9660 filesystem track has number 0. Tracks associated with playable entries numbers start at 1.

The "leadout" track is specified either by using track_num LEADOUT_TRACK or the total tracks+1. VCDINFO_NULL_LBA is returned on failure.

Definition at line 1350 of file info.c.

References vcdinfo_get_track_msf().

Referenced by vcdinfo_get_track_msf().

{
  msf_t msf;

  if (NULL == obj || NULL == obj->img)
    return 1;
  
  /* CdIo tracks start at 1 rather than 0. */
  if (cdio_get_track_msf(obj->img, track_num+1, &msf)) {
    *min   = cdio_from_bcd8(msf.m);
    *sec   = cdio_from_bcd8(msf.s);
    *frame = cdio_from_bcd8(msf.f);
    return 0;
  }
  
  return 1;
}


Generated by  Doxygen 1.6.0   Back to index