CDgettrackinfo(3dm) CDgettrackinfo(3dm)
CDgettrackinfo - get information about a specified track on an audio CD
#include <sys/types.h>
#include <dmedia/cdaudio.h>
int CDgettrackinfo(CDPLAYER* cd, int track, CDTRACKINFO* info)
cd A pointer to the CDPLAYER structure representing the target CDROM
drive.
track The number of the interesting track.
info A pointer to the CDTRACKINFO structure to be filled in.
If successful, this function returns a non-zero value otherwise zero is
returned.
CDgettrackinfo(3dm) fills in the info structure with information about
the specified track. CDTRACKINFO is defined in cdaudio.h as follows:
typedef struct {
int start_min;
int start_sec;
int start_frame;
int total_min;
int total_sec;
int total_frame;
} CDTRACKINFO;
Start is the starting point of this track in absolute time code. Total is
the length of the track.
CDintro(3dm), CDclose(3dm), CDgetstatus(3dm), CDeject(3dm), CDopen(3dm),
CDplay(3dm), CDplayabs(3dm), CDplaytrack(3dm), CDplaytrackabs(3dm),
CDreadda(3dm), CDstop(3dm), CDtogglepause(3dm),
Roger Chickering, Mark Callow
PPPPaaaaggggeeee 1111 [ Back ]
|