libcdio-paranoia 10.2+2.0.2
Functions
toc.c File Reference
#include "low_interface.h"
#include "utils.h"
#include <cdio/paranoia/toc.h>

Functions

lsn_t cdda_track_firstsector (cdrom_drive_t *d, track_t i_track)
 
lsn_t cdda_disc_firstsector (cdrom_drive_t *d)
 
lsn_t cdda_track_lastsector (cdrom_drive_t *d, track_t i_track)
 
lsn_t cdda_disc_lastsector (cdrom_drive_t *d)
 
track_t cdda_tracks (cdrom_drive_t *d)
 
int cdio_cddap_sector_gettrack (cdrom_drive_t *d, lsn_t lsn)
 
int cdio_cddap_track_channels (cdrom_drive_t *d, track_t i_track)
 
int cdio_cddap_track_audiop (cdrom_drive_t *d, track_t i_track)
 
int cdio_cddap_track_copyp (cdrom_drive_t *d, track_t i_track)
 
int cdio_cddap_track_preemp (cdrom_drive_t *d, track_t i_track)
 

Function Documentation

◆ cdda_disc_firstsector()

lsn_t cdda_disc_firstsector ( cdrom_drive_t d)

Get first lsn of the first audio track. -ERROR_CODE is returned on error.

◆ cdda_disc_lastsector()

lsn_t cdda_disc_lastsector ( cdrom_drive_t d)

Get last lsn of the last audio track. The last lssn generally one less than the start of the next track after the audio track. -ERROR_CODE is returned on error.

◆ cdda_track_firstsector()

lsn_t cdda_track_firstsector ( cdrom_drive_t d,
track_t  i_track 
)

Return the lsn for the start of track i_track or CDIO_LEADOUT_TRACK

◆ cdda_track_lastsector()

lsn_t cdda_track_lastsector ( cdrom_drive_t d,
track_t  i_track 
)

Get last lsn of the track. The lsn is generally one less than the start of the next track. -ERROR_CODE is returned on error.

◆ cdda_tracks()

track_t cdda_tracks ( cdrom_drive_t d)

Return the number of tracks on the CD or CDIO_INVALID_TRACK (255) if error.

◆ cdio_cddap_sector_gettrack()

int cdio_cddap_sector_gettrack ( cdrom_drive_t d,
lsn_t  lsn 
)

Return the track containing the given LSN. If the LSN is before the first track (in the pregap), 0 is returned. If there was an error or the LSN after the LEADOUT (beyond the end of the CD), then CDIO_INVALID_TRACK is returned.

◆ cdio_cddap_track_audiop()

int cdio_cddap_track_audiop ( cdrom_drive_t d,
track_t  i_track 
)

Return 1 is track is an audio track, 0 otherwise.

◆ cdio_cddap_track_channels()

int cdio_cddap_track_channels ( cdrom_drive_t d,
track_t  i_track 
)

Return the 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.

◆ cdio_cddap_track_copyp()

int cdio_cddap_track_copyp ( cdrom_drive_t d,
track_t  i_track 
)

Return 1 is track is an audio track, 0 otherwise.

◆ cdio_cddap_track_preemp()

int cdio_cddap_track_preemp ( cdrom_drive_t d,
track_t  i_track 
)

Return 1 is audio track has linear preemphasis set, 0 otherwise. Only makes sense for audio tracks.