Mercurial > audlegacy-plugins
changeset 1194:bf57aa1dc503 trunk
Added drive speed limit
author | calin.crisan@ldev-006 |
---|---|
date | Thu, 21 Jun 2007 17:42:48 +0300 |
parents | 483b8d900d5e |
children | 8a2a9ec122f0 |
files | src/cdaudio-ng/cdaudio-ng.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cdaudio-ng/cdaudio-ng.c Thu Jun 21 17:34:24 2007 +0300 +++ b/src/cdaudio-ng/cdaudio-ng.c Thu Jun 21 17:42:48 2007 +0300 @@ -240,15 +240,15 @@ cdio_free_device_list(ppcd_drives); } - cdrom_drive_t *pcdrom_drive = cdio_cddap_identify_cdio(pcdio, 1, NULL); // todo : check return / NULL /* limit read speed */ if (limitspeed > 0) { if (debug) printf("cdaudio-ng: setting drive speed limit to %dx\n", limitspeed); - if (!cdio_cddap_speed_set(pcdrom_drive, limitspeed)) + if (cdio_set_speed(pcdio, limitspeed) != DRIVER_OP_SUCCESS) fprintf(stderr, "cdaudio-ng: failed to set drive speed to %dx\n", limitspeed); } /* get track information */ + cdrom_drive_t *pcdrom_drive = cdio_cddap_identify_cdio(pcdio, 1, NULL); // todo : check return / NULL firsttrackno = cdio_get_first_track_num(pcdrom_drive->p_cdio); lasttrackno = cdio_get_last_track_num(pcdrom_drive->p_cdio); if (firsttrackno == CDIO_INVALID_TRACK || lasttrackno == CDIO_INVALID_TRACK) {