Technote DV 25 | February 1994 Updated: October 1997 |
This Technote describes the format of the "CD Remote Programs"
database, as used in the "CD Remote" desk accessory, the Hypercard CD Audio
XCMDs, etc.
An example IndX resource:
1214 0002 0B50 0240 276B 0C44 1365 1D0CYou would interpret this as:
version number: $1214
number of discs we know about: 2
number of tracks on first disc: 11
CD Identification: $500240; this is 50 minutes, 02 seconds, and 40 blocks (1/75 of a second)
Resource ID for ProG and STR# resources: 10091
number of tracks on second disc: 12
CD Identification: $441365; this is 44 minutes, 13 seconds, and 65 blocks (1/75 of a second)
Resource ID for ProG and STR# resources: 7436
The ResEdit TMPL template for the `IndX' resource is as follows:
resource 'TMPL' (128, "IndX", purgeable) { { /* array ItemArray: 7 elements */ /* [1] */ "Version Number", 'HWRD', /* [2] */ "Number of CDs", 'OCNT', /* [3] */ "****", 'LSTC', /* [4] */ "Number of tracks", 'DBYT', /* [5] */ "Number of blocks on CD", 'H003', /* [6] */ "Resource ID of ProG and STR#", 'DWRD', /* [7] */ "****", 'LSTE' } };
An example ProG resource:
000B 0101 0102 0103 0104 0105 0107 0106 0008 0109 0110 0111You would interpret this as:
11 tracks on this disc.
Play track 7 before track 6
Don't play track 8
The ResEdit TMPL template for the `ProG' resource is as follows:
resource 'TMPL' (129, "ProG", purgeable) { /* array ItemArray: 5 elements */ /* [1] */ "Number of tracks", 'OCNT', /* [2] */ "****", 'LSTC', /* [3] */ "Play this track (1 = yes)", 'DBYT', /* [4] */ "Track number in BCD", 'HBYT', /* [5] */ "****", 'LSTE' } };
The STR# resource format is two bytes containing the number of strings, followed by the strings. Each string is a one-byte length followed by the characters. The ResEdit template for STR# resources is predefined in ResEdit. If it were not, it would look like this:
resource 'TMPL' (258, "STR#", purgeable) { /* array ItemArray: 4 elements */ /* [1] */ "NumStrings", 'OCNT', /* [2] */ "*****", 'LSTC', /* [3] */ "The string", 'PSTR', /* [4] */ "*****", 'LSTE' } };
Further Reference:
The Apple Store | Hot News | About Apple | Products | Support Design & Publishing | Education | Developer | Where to Buy | Home Contact Us Copyright 1998 Apple Computer, Inc. All rights reserved. |