BiNo2007
2007-09-01 16:49:44 UTC
I have tried to read CD sectors by Windows ReadFile(), after
specifying "\\.\E:"
as the first parameter in Windows CreateFile(). E is the identifier of
my CD unit.
No problem if CD is a data CD, but problems if CD is an audio CD.
My questions are the following.
How can I read sectors of audio tracks in a CD? I have found in
Internet that the
total number of bytes is greater than 2048, because there are
supplementary bytes
for checking errors in data. Can I read only 2048 bytes or the whole
sector?
If a CD contains also data tracks, Primary Volume Descriptor is in
sector 10h?
Even if a CD contains only audio tracks, Windows displays .cda files.
These files
show a time and a date. The whole CD has a serial number. Where are
these information
stored, if an audio CD does not contain a PVD?
Thank you very much. Please excuse me if the message is so long!
specifying "\\.\E:"
as the first parameter in Windows CreateFile(). E is the identifier of
my CD unit.
No problem if CD is a data CD, but problems if CD is an audio CD.
My questions are the following.
How can I read sectors of audio tracks in a CD? I have found in
Internet that the
total number of bytes is greater than 2048, because there are
supplementary bytes
for checking errors in data. Can I read only 2048 bytes or the whole
sector?
If a CD contains also data tracks, Primary Volume Descriptor is in
sector 10h?
Even if a CD contains only audio tracks, Windows displays .cda files.
These files
show a time and a date. The whole CD has a serial number. Where are
these information
stored, if an audio CD does not contain a PVD?
Thank you very much. Please excuse me if the message is so long!