Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.

Chunk Headers

Every chunk in an AIFF or AIFF-C file contains a chunk header that defines characteristics of the chunk. The ChunkHeader data type defines a chunk header.

TYPE ChunkHeader =
RECORD
    ckID:       ID;             {chunk type ID}
    ckSize:     LongInt;        {number of bytes of data}
END;

ckID

The ID of the chunk. An ID is a 32-bit concatenation of any four printable ASCII characters in the range ' ' (space character, ASCII value $20) through '~' (ASCII value $7E). Spaces cannot precede printing characters, but trailing spaces are allowed. Control characters are not allowed. See "Chunk IDs" for a list of the currently recognized chunk IDs.

ckSize

The size of the chunk in bytes, not including the ckID and ckSize fields.

© 1999 Apple Computer, Inc.

Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.