On Mon, 14 Jan 2013 00:28:22 -0500, Filipus Klutiero wrote: > >After trying and reading a bit further (both in cdck and in > >linux/cdrom.h) I _think_ this won't work for audio CDs. I can get a > >sectors variable by removing some conditions, but than I'm ending at: > > > >% src/cdck -t > >sectors = 327782 > >NB! For disks written with some burners cdck might > > report about unreadable sectors at the end of the disk. > > In such cases you can just ignore those warnings. > > > >Reading sectors 1-327782 > >! unable to read sector 1, reason: Input/output error > >! unable to read sector 2, reason: Input/output error > >! unable to read sector 3, reason: Input/output error > >[..] > >
> This is not just a documentation problem - testing audio CDs is no > less possible than testing other kinds of CDs. Maybe bu I'm not conviced it works the way cdck uses linux/cdrom.h ... > But adapting the > documentation and the behavior when this fails would certainly be > better than nothing. > > I do not understand what you wrote about ReadTOC() and sectors_tot. > Maybe provide patches showing what you tested. With #v+ diff --git a/src/lib_main.cpp b/src/lib_main.cpp index 256a62a..dfb48ee 100644 --- a/src/lib_main.cpp +++ b/src/lib_main.cpp @@ -143,7 +143,6 @@ int Ccdrom::ReadTOC() } if (i == CDROM_LEADOUT) { - if (toc.cdte_ctrl & CDROM_DATA_TRACK) sectors = toc.cdte_addr.msf.frame + toc.cdte_addr.msf.second*75 + toc.cdte_addr.msf.minute*75*60 - 150; @@ -169,7 +168,7 @@ int Ccdrom::ReadTOC() sectors_tot = sectors; - // printf("sectors = %d", sectors); + printf("sectors = %d", sectors); /* get mcn */ /* @@ -415,12 +414,6 @@ int Ccdrom::ReadCD () { //DBG ("Ccdrom::ReadCD\n"); - if (disc_status != CDS_DATA_1) { - // printf("disc_status != CDS_DATA_1"); - snprintf (last_err, ERR_STR_MAX, "disc_status != CDS_DATA_1"); - return RET_FAILED; - } - if (sectors_tot <= 0) { // printf("sectors_tot <= 0"); snprintf (last_err, ERR_STR_MAX, "sectors_tot <= 0"); #v- I get: % src/cdck -t sectors = 253807 NB! For disks written with some burners cdck might report about unreadable sectors at the end of the disk. In such cases you can just ignore those warnings. Reading sectors 1-253807 ! unable to read sector 1, reason: Input/output error ! unable to read sector 2, reason: Input/output error ! unable to read sector 3, reason: Input/output error Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Cat Power: Where Is My Love
signature.asc
Description: Digital signature