ADC Home > Reference Library > Reference > Audio > Carbon > Disc Recording Framework Reference
|
DRTrack.h |
Includes: | <stdint.h> <AvailabilityMacros.h> |
Base class for track handling
DRAbstractFile |
extern NSString* const DRAbstractFile;
DRFile pointing to the abstract file for ISO and Joliet volumes. The file must be in the root directory.
DRApplicationIdentifier |
extern NSString* const DRApplicationIdentifier;
NSString indicating the application identifier for ISO, Joliet and UDF volumes.
DRAudioFourChannelKey |
extern NSString* const DRAudioFourChannelKey;
For CD-DA audio tracks only. This key points to a BOOL value indicating
whether the track data has four channels, as opposed to the
two channels of normal stereo. If this key is not present, the engine
will use a default value of NO and standard two-channel stereo
is assumed.
Note that while four-channel is technically allowed in the Red Book,
it never caught on and is probably being replaced by SACD, so
you probably shouldn't attempt to use it.
On the media, this key corresponds to bit 3 of the control field in
sub-channel Q.
DRAudioPreEmphasisKey |
extern NSString* const DRAudioPreEmphasisKey;
For CD-DA audio tracks only. This key points to a BOOL value indicating whether the track includes pre-emphasis of 50/15us. If this key is not present, the engine will use a default value of NO. On the media, this key corresponds to bit 0 of the control field in sub-channel Q.
DRBibliographicFile |
extern NSString* const DRBibliographicFile;
DRFile pointing to the bibliographic file for ISO and Joliet volumes. The file must be in the root directory.
DRBlockSize |
extern NSString* const DRBlockSize;
NSNumber indicating the block size of the track. Currently always 2048. Do not change.
DRBlockSizeKey |
extern NSString* const DRBlockSizeKey;
NSNumber containing the size in bytes of each track block. See the Mt. Fuji (INF-8090i) specification for CD/DVD devices for possible values for this property.
DRBlockTypeKey |
extern NSString* const DRBlockTypeKey;
NSNumber containing the type of each track block. See the Mt. Fuji (INF-8090i) specification for CD/DVD devices for possible values for this property.
DRCopyrightFile |
extern NSString* const DRCopyrightFile;
DRFile pointing to the copyright file for ISO and Joliet volumes. The file must be in the root directory.
DRDataFormKey |
extern NSString* const DRDataFormKey;
NSNumber containing the data form of each block in the track. See the Mt. Fuji (INF-8090i) specification for CD/DVD devices for possible values for this property.
DRDataPreparer |
extern NSString* const DRDataPreparer;
NSString indicating the data preparer for ISO and Joliet volumes.
DRDefaultDate |
extern NSString* const DRDefaultDate;
NSDate containing the default date to use for any unspecified dates in the filesystem. The current date and time is used if unspecified.
DRDVDCopyrightInfoKey |
extern NSString* const DRDVDCopyrightInfoKey;
For DVD tracks only. NSData containing the DVD copyright info structure sent through the SEND DVD STRUCTURE command. The contents of this will be sent directly to the drive.
DRDVDTimestampKey |
extern NSString* const DRDVDTimestampKey;
For DVD tracks only. NSData containing the DVD timestamp structure sent through the SEND DVD STRUCTURE command. The contents of this will be sent directly to the drive.
DRFreeBlocksKey |
extern NSString* const DRFreeBlocksKey;
NSNumber containing the length, in blocks, which is still available in a writable track.
DRIndexPointsKey |
extern NSString* const DRIndexPointsKey;
For CD tracks only. This key points to an NSArray of NSNumbers, indicating
the index points inside the track. Each index point is specified as a number
of blocks (frames) relative to the start of the track. There are 75 blocks
in one second of CD audio. No more than 98 index points may be specified
for a track.
Not all drives are capable of writing index points, and not all consumer
CD players report or use them. If this key is present in any track and the
drive cannot write index points, the burn will fail with
kDRDeviceCantWriteIndexPointsErr .
DRISOLevel |
extern NSString* const DRISOLevel;
NSNumber containing the ISO level of the ISO-9660 filesystem on the track. Currently should be 1 or 2.
DRISOMacExtensions |
extern NSString* const DRISOMacExtensions;
NSBoolean indicating whether the track should have Mac extensions.
DRISORockRidgeExtensions |
extern NSString* const DRISORockRidgeExtensions;
NSBoolean indicating whether the track should have RockRidge (POSIX) extensions.
DRMaxBurnSpeedKey |
extern NSString* const DRMaxBurnSpeedKey;
NSNumber containing the maximum burn speed at which data can be produced. The speed is represented in KB/s (1 KB = 1000 bytes). This key can only be used to limit the speed at which the burn runs.
DRNextWritableAddressKey |
extern NSString* const DRNextWritableAddressKey;
NSNumber containing the LBA of the next writable address in the track. This key is not present in closed tracks.
DRPreGapIsRequiredKey |
extern NSString* const DRPreGapIsRequiredKey;
For CD tracks only. NSNumber indicating whether the pregap listed for the
track is required. If this key is not present, the track will behave as
though the key were NO.
If this key's value is set to YES and the device does
not support the exact pregap length, the burn
will fail with a return value of kDRDevicePregapLengthNotAvailableErr .
If this key's value is set to YES and the device does
not support any of the suggested pregap length, the engine
will choose an alternate pregap length.
DRPreGapLengthKey |
extern NSString* const DRPreGapLengthKey;
For CD tracks only. NSNumber containing the length of silence or data at the beginning of the track. This defaults to 2 seconds of silence. If this key is present, the track producer will be asked for the pregap data first. If the producer implements the proper selector, then it's the responsibility of the producer to provide data for the pregap, otherwise that length of silence will be produced by Disc Recording.
DRPublisher |
extern NSString* const DRPublisher;
NSString indicating the publisher for ISO and Joliet volumes.
DRSCMSCopyrightFree |
extern NSString* const DRSCMSCopyrightFree;
One possible value for the DRSerialCopyManagementStateKey . Indicates that the track has no copying restrictions. Copies of this track should also be copyright free.
DRSCMSCopyrightProtectedCopy |
extern NSString* const DRSCMSCopyrightProtectedCopy;
One possible value for the DRSerialCopyManagementStateKey . Indicates that the track is a first-generation copy of an original that was subject to copy protection. No further digital copying should be allowed.
DRSCMSCopyrightProtectedOriginal |
extern NSString* const DRSCMSCopyrightProtectedOriginal;
One possible value for the DRSerialCopyManagementStateKey . Indicates that the track is an original subject to copyright protection. Digital copying of this track should be allowed, but copies should be marked with SCMS.
DRSerialCopyManagementStateKey |
extern NSString* const DRSerialCopyManagementStateKey;
For CD tracks only. This key points to an NSString value indicating the
SCMS state of the track. If this key is not present, no SCMS data is
written.
Not all drives are capable of writing SCMS. If this key is present in
any track and the drive cannot write SCMS, the burn will fail with
kDRDeviceCantWriteSCMSErr .
DRSessionFormatKey |
extern NSString* const DRSessionFormatKey;
NSNumber containing the session format of the track. See the Mt. Fuji (INF-8090i) specification for CD/DVD devices for possible values for this property.
DRSessionNumberKey |
extern NSString* const DRSessionNumberKey;
NSNumber containing the physical session number of a track.
DRSubchannelDataFormKey |
extern NSString* const DRSubchannelDataFormKey;
The property whose value is the data mode of the subchannel data sent to the drive.
If this key is not present, the track will default to a value of DRSubchannelDataFormNone
and no subchannel information will be requested from the producer.
Subchannel data is returned from the producer in the same production method that produces normal user data.
Normally a producer returns user data in chunks of DRBlockSizeKey size. When subchannel
data is also produced, the producer is expected to return user data of DRBlockSizeKey in length with an additonal
96 bytes of subchannel data. Depending on the data form specified in this key, the format of this 96 bytes is
either in raw or pack format. When subchannel data is requested from the producer, the DRFlagSubchannelDataRequested flag is set in the flags parameter of
producePreGapForTrack:intoBuffer:length:atAddress:blockSize:ioFlags:
or produceDataForTrack:intoBuffer:length:atAddress:blockSize:ioFlags: and blockSize is increased by 96 bytes.
DRSubchannelDataFormNone |
extern NSString * const DRSubchannelDataFormNone;
A value for DRSubchannelDataFormKey indicating that the subchannel data will not be provided by the producer.
DRSubchannelDataFormPack |
extern NSString* const DRSubchannelDataFormPack;
A value for DRSubchannelDataFormKey indicating that the producer will be asked to provide pack format subchannel data for the track. If this form is selected, the drive will perform P and Q parity calculations on each pack and interleave the packs before writing them to disc. This corresponds to a subchannel data form of 0xC0.
DRSubchannelDataFormRaw |
extern NSString* const DRSubchannelDataFormRaw;
A value for DRSubchannelDataFormKey indicating that the producer will be asked to provide raw format subchannel data for the track. If this form is selected, the producer must have performed P and Q parity calculations for each pack and done proper interleaving of the subchannel data. The drive will fill in the P-Q subchannel information and write the R-W subchannel data as is to the disc. This corresponds to a subchannel data form of 0x40.
DRSuppressMacSpecificFiles |
extern NSString* const DRSuppressMacSpecificFiles;
NSBoolean indicating whether the track should suppress Mac-specific files from non-HFS filesystems.
DRSystemIdentifier |
extern NSString* const DRSystemIdentifier;
NSString indicating the system identifier for ISO and Joliet volumes.
DRTrackIsEmptyKey |
extern NSString* const DRTrackIsEmptyKey;
NSNumber containing a BOOL value and indicates whether the track is empty.
DRTrackISRCKey |
extern NSString* const DRTrackISRCKey;
For CD-DA audio tracks only. This key points to an NSData containing
exactly 12 bytes, which will be written to the disc as the International
Standard Recording Code (ISRC). If this key is not present, no ISRC
is written.
The use of this value should conform to the specifications of the IFPI. See
http://www.ifpi.org/isrc/ for more details on the ISRC standard.
Not all drives are capable of the write modes necessary to write the ISRC.
If this key is present in any track and the drive cannot write the ISRC, the
burn will fail with kDRDeviceCantWriteISRCErr .
DRTrackLengthKey |
extern NSString* const DRTrackLengthKey;
NSNumber representing the length of the track
DRTrackModeKey |
extern NSString* const DRTrackModeKey;
NSNumber containing the track mode of the track. See the Mt. Fuji (INF-8090i) specification for CD/DVD devices for possible values for this property.
DRTrackNumberKey |
extern NSString* const DRTrackNumberKey;
NSNumber containing the physical track number of a track.
DRTrackPacketSizeKey |
extern NSString* const DRTrackPacketSizeKey;
NSNumber containing the number of blocks per packet for the disc. It will only be present if the disc contains fixed packets. This key will contain 16 for DVD media, and typically contains either 16 or 32 for CD media.
DRTrackPacketTypeFixed |
extern NSString* const DRTrackPacketTypeFixed;
If this is the value of the DRTrackPacketTypeKey then the disc is writen with fixed sized packets. When this value is present the DRPacketSizeKey will also be present.
DRTrackPacketTypeKey |
extern NSString* const DRTrackPacketTypeKey;
NSString indicating the kind of packets being written.
DRTrackPacketTypeVariable |
extern NSString* const DRTrackPacketTypeVariable;
If this is the value of the DRTrackPacketTypeKey then the disc is written with sequential variable sized packets. The presence of this value indicates the lack of the DRPacketSizeKey.
DRTrackStartAddressKey |
extern NSString* const DRTrackStartAddressKey;
NSNumber containing the LBA of the start address for the track.
DRTrackTypeClosed |
extern NSString* const DRTrackTypeClosed;
If this is the value of the DRTrackTypeKey then the track has been written and is closed.
DRTrackTypeIncomplete |
extern NSString* const DRTrackTypeIncomplete;
If this is the value of the DRTrackTypeKey then the track is not invisible or reserved and is available for writing.
DRTrackTypeInvisible |
extern NSString* const DRTrackTypeInvisible;
If this is the value of the DRTrackTypeKey then the track is invisible and available to writing. If it is packet written and not closed, DRPacketTypeKey will be present, along with DRTrackPacketType and DRTrackPacketSize keys.
DRTrackTypeKey |
extern NSString* const DRTrackTypeKey;
NSString indicating the type of track. Possible values are: DRTrackTypeInvisible , DRTrackTypeIncomplete , DRTrackTypeReserved or DRTrackTypeClosed .
DRTrackTypeReserved |
extern NSString* const DRTrackTypeReserved;
If this is the value of the DRTrackTypeKey then the track is reserved for writing.
DRVerificationTypeChecksum |
extern NSString * const DRVerificationTypeChecksum;
One of the possible values of the DRVerificationTypeKey . The engine will verify the track data with an internally calculated checksum.
DRVerificationTypeKey |
extern NSString* const DRVerificationTypeKey;
NSString indicating the type of verification to be performed. If this is not present, the track will not be verified.
DRVerificationTypeNone |
extern NSString* const DRVerificationTypeNone;
One of the possible values of the DRVerificationTypeKey . No verification is desired, so verification will be skipped.
DRVerificationTypeProduceAgain |
extern NSString* const DRVerificationTypeProduceAgain;
One of the possible values of the DRVerificationTypeKey . The engine will simply begin another production cycle and start calling <produceDataForTrack:intoBuffer:length:atAddress:blockSize:ioFlags: again.
DRVerificationTypeReceiveData |
extern NSString* const DRVerificationTypeReceiveData;
One of the possible values of the DRVerificationTypeKey . The engine will begin reading data from the disc and calling verifyDataForTrack:inBuffer:length:atAddress:blockSize:ioFlags: .
DRVolumeCheckedDate |
extern NSString* const DRVolumeCheckedDate;
NSDate containing the volume-checked date for HFS+ volumes. DRDefaultDate is used if unspecified.
DRVolumeCreationDate |
extern NSString* const DRVolumeCreationDate;
NSDate containing the volume creation date. DRDefaultDate is used if unspecified.
DRVolumeEffectiveDate |
extern NSString* const DRVolumeEffectiveDate;
NSDate containing the date and time at which the volume is effective for ISO and Joliet volumes.
DRVolumeExpirationDate |
extern NSString* const DRVolumeExpirationDate;
NSDate containing the volume expiration date for ISO and Joliet volumes.
DRVolumeModificationDate |
extern NSString* const DRVolumeModificationDate;
NSDate containing the volume modification date. DRDefaultDate is used if unspecified.
DRVolumeSet |
extern NSString* const DRVolumeSet;
NSString indicating the volume set name for ISO and Joliet volumes.
Track Flags |
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 enum { DRFlagSubchannelDataRequested = ( 1 << 1) }; #endif
DRFlagSubchannelDataRequested
- Indicates that the blockSize passed in includes room for subchannel data. Data producers should check this flag and perform subchannel data production in addition to user fata production. Each block requested from the producer in this case will be formatted as
[user data (as specified in track properties)][subchannel data(96 bytes)].
For example an audio producer callback should repeatedly produce 2352 bytes of audio data into bytes 0-2351 of the block and an additional 96 bytes of subchannel data into bytes 2352-2447.
These flags are options for the flags parameter of producePreGapForTrack:intoBuffer:length:atAddress:blockSize:ioFlags: and produceDataForTrack:intoBuffer:length:atAddress:blockSize:ioFlags:.
|