libcdio
0.82
|
The top-level header for track-related libcdio calls. More...
Go to the source code of this file.
The top-level header for track-related libcdio calls.
#define CDIO_CD_MIN_TRACK_NO 1 |
Smallest CD track number
enum cdio_track_enums |
The leadout track is always 0xAA, regardless of # of tracks on disc, or what value may be used internally. For example although OS X uses a different value for the lead-out track internally than given below, programmers should use CDIO_CDROM_LEADOUT_TRACK and not worry about this.
An enumeration for some of the CDIO_CDROM_* #defines below. This isn't really an enumeration one would really use in a program; it is to be helpful in debuggers where wants just to refer to the CDIO_CDROM_* names and get something.
enum track_flag_t |
enum track_format_t |
enum trackmode_t |
track modes (Table 350) reference: MMC-3 draft revsion - 10g
cdtext_t* cdio_get_cdtext | ( | CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Get CD-Text information for a CdIo_t object.
p_cdio | the CD object that may contain CD-Text information. |
i_track | track for which we are requesting CD-Text information. |
If i_track is 0 or CDIO_CDROM_LEADOUT_TRACK the track returned is the information assocated with the CD.
track_t cdio_get_first_track_num | ( | const CdIo_t * | p_cdio | ) |
Get the number of the first track.
track_t cdio_get_last_track_num | ( | const CdIo_t * | p_cdio | ) |
Return the last track number. CDIO_INVALID_TRACK is returned on error.
track_t cdio_get_track | ( | const CdIo_t * | p_cdio, |
lsn_t | lsn | ||
) |
Find the track which contains lsn. CDIO_INVALID_TRACK is returned if the lsn outside of the CD or if there was some error.
If the lsn is before the pregap of the first track 0 is returned. Otherwise we return the track that spans the lsn.
int cdio_get_track_channels | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Return number of channels in track: 2 or 4; -2 if not implemented or -1 for error. Not meaningful if track is not an audio track.
track_flag_t cdio_get_track_copy_permit | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Return copy protection status on a track. Is this meaningful if not an audio track?
track_format_t cdio_get_track_format | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Get the format (audio, mode2, mode1) of track.
bool cdio_get_track_green | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Return true if we have XA data (green, mode2 form1) or XA data (green, mode2 form2). That is track begins: sync - header - subheader 12 4 - 8
FIXME: there's gotta be a better design for this and get_track_format?
char* cdio_get_track_isrc | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Get the International Standard Recording Code (ISRC) for track number i_track in p_cdio. Track numbers usually start at something greater than 0, usually 1.
Note: string is malloc'd so caller has to free() the returned string when done with it.
lsn_t cdio_get_track_last_lsn | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Return the ending LSN for track number i_track in cdio. CDIO_INVALID_LSN is returned on error.
lba_t cdio_get_track_lba | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Get the starting LBA for track number i_track in p_cdio. Track numbers usually start at something greater than 0, usually 1.
The "leadout" track is specified either by using i_track CDIO_CDROM_LEADOUT_TRACK or the total tracks+1.
p_cdio | object to get information from |
i_track | the track number we want the LSN for |
lsn_t cdio_get_track_lsn | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Return the starting LSN for track number i_track in p_cdio. Track numbers usually start at something greater than 0, usually 1.
The "leadout" track is specified either by using i_track CDIO_CDROM_LEADOUT_TRACK or the total tracks+1.
p_cdio | object to get information from |
i_track | the track number we want the LSN for |
bool cdio_get_track_msf | ( | const CdIo_t * | p_cdio, |
track_t | i_track, | ||
msf_t * | msf | ||
) |
Return the starting MSF (minutes/secs/frames) for track number i_track in p_cdio. Track numbers usually start at something greater than 0, usually 1.
The "leadout" track is specified either by using i_track CDIO_CDROM_LEADOUT_TRACK or the total tracks+1.
track_flag_t cdio_get_track_preemphasis | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Get linear preemphasis status on an audio track This is not meaningful if not an audio track?
lba_t cdio_get_track_pregap_lba | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Return the starting LBA for the pregap for track number i_track in p_cdio. Track numbers usually start at something greater than 0, usually 1.
p_cdio | object to get information from |
i_track | the track number we want the LBA for |
lsn_t cdio_get_track_pregap_lsn | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Return the starting LSN for the pregap for track number i_track in p_cdio. Track numbers usually start at something greater than 0, usually 1.
p_cdio | object to get information from |
i_track | the track number we want the LSN for |
unsigned int cdio_get_track_sec_count | ( | const CdIo_t * | p_cdio, |
track_t | i_track | ||
) |
Get the number of sectors between this track an the next. This includes any pregap sectors before the start of the next track. Track numbers usually start at something greater than 0, usually 1.
const char* track_format2str[6] |
Printable tags for track_format_t enumeration.