Discussion:
*** Info CD AUDIO Binary Format ***
(too old to reply)
BiNo2007
2007-09-01 16:49:44 UTC
Permalink
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!
Mark Blain
2007-09-01 19:53:15 UTC
Permalink
Post by BiNo2007
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!
I'm not a programmer, but perhaps this will help:

"How Reading CD-Audio Tracks with DeviceIoControl"
<http://groups.google.com/group/microsoft.public.win32.programmer.kernel/msg/803f95bb04e84a56>

"Tutorial on reading Audio-CDs" by Michel Helms
http://www.codeproject.com/audio/SimpleAudioCD.asp

Loading...