/* * Get the number of frames on the CD. */ int gen_get_cdlen(struct wm_drive *d, int *frames) { int tmp; struct ioc_toc_header hdr; int status; #define LEADOUT 0xaa /* see scsi.c. what a hack! */ return gen_get_trackinfo(d, LEADOUT, &tmp, frames); } /* gen_get_cdlen() */
/* * Get the number of frames on the CD. */ int gen_get_cdlen( struct wm_drive *d, int *frames ) { int tmp; if ((d->get_trackcount)(d, &tmp)) return -1; return gen_get_trackinfo(d, tmp + 1, &tmp, frames); } /* gen_get_cdlen() */