Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#19 can't read audio tracks

open
nobody
None
5
2001-11-19
2001-11-19
Miguel Fortea
No

I can't play a music CD in my computer because its
copy-protect schema, so i'm trying to copy the CD
without it but can't. This is what i know and what
i've tried, any idea will be appreciate. Thank you
very much, and sorry for my english.

1: The TOC of the CD have "-1" as lba of the first
track. I've appended code to CdrDriver::readDisk so,
now it send a warning to the user but correct it and
continue. Below are the changes made by me to v1.5.5.

2: When i ran cdrdao it can't read the music data.
With '--driver generic-mmc:0x00000020 --fast-toc' it
print the toc and found ISRC codes but, when it begin
to read data (at GenericMMC::readAudioRange()), the
drive was reseted and a message like 'aha1542.c:
Trying device reset for target 5' was printed at
console. I've ran cdrdao with gdb (the log of the
session is attached to this message), and found that
it reset the drive at ScsiIf::sendCmd(). I've tried to
jump the first track, but the drive was reseted with
the first call to readSubChannels().

** code append at 2980 line of CdrDriver.cc (cdrdao-
1.1.5/dao/CdrDriver.cc, CdrDriver::readDisk)
// check the TOC
long lba0 = 0;
for (i=0;i<nofTracks;i++) {
if (cdToc[i].start < lba0) {
message(-1, "bad track %d starts: was %ld,
corrected to %ld",
i,cdToc[i].start,lba0);
cdToc[i].start=lba0;
}
lba0 = cdToc[i].start;
}

Discussion

  • Miguel Fortea
    Miguel Fortea
    2001-11-19

    log file of the gdb session

     
    Attachments