What exactly does DKIOCCDREAD return for kCDSectorAreaSubChannelQ?
What exactly does DKIOCCDREAD return for kCDSectorAreaSubChannelQ?
- Subject: What exactly does DKIOCCDREAD return for kCDSectorAreaSubChannelQ?
- From: "Stephen F. Booth" <email@hidden>
- Date: Sat, 3 Jun 2006 22:53:04 -0700
I am a bit confused as to the exact format of the data returned by
the result of a DKIOCCDREAD ioctl() when reading the Q sub-channel of
a CD-DA disc. Everything I have read up to this point states that
the subcode data from an audio CD is 96 bits long. With this in
mind, I expect to see (for a single CD-DA frame):
- 4 control bits
- 4 address bits
- 72 data bits
- 16 bits of CRC
= 96 bits for the general structure, with the data bits looking like
(for the program area):
- 8 bits each for TNO, INDEX, MIN, SEC, FRAME, ZERO, AMIN, ASEC,
AFRAME
My source for this MMC-2, section 4.2.2.
Here is my confusion: 96 bits of subcode data = 12 bytes of data.
Yet, according to IOCDTypes.h the Q subcode data returned by
DKIOCCDREAD is 16 bytes. Can anyone shed some light on this
matter? I've probably missed something obvious, but I'm stumped.
Thanks,
Stephen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden