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 IDs

You can use the following constants to specify a chunk ID, a 4-byte value that identifies the type of a chunk in an AIFF or AIFF-C file.

CONST
    {IDs for AIFF and AIFF-C file chunks}
    FormID                          = 'FORM';       {ID for Form Chunk}
    FormatVersionID                 = 'FVER';       {ID for Format Version Chunk}
    CommonID                        = 'COMM';       {ID for Common Chunk}
    SoundDataID                     = 'SSND';       {ID for Sound Data Chunk}
    MarkerID                        = 'MARK';       {ID for Marker Chunk}
    InstrumentID                    = 'INST';       {ID for Instrument Chunk}
    MIDIDataID                      = 'MIDI';       {ID for MIDI Data Chunk}
    AudioRecordingID                = 'AESD';       {ID for Recording Chunk}
     ApplicationSpecificID          = 'APPL';       {ID for Application Chunk}
    CommentID                       = 'COMT';       {ID for Comment Chunk}
    NameID                          = 'NAME';       {ID for Name Chunk}
    AuthorID                        = 'AUTH';       {ID for Author Chunk}
    CopyrightID                     = '(c) ';       {ID for Copyright Chunk}
    AnnotationID                    = 'ANNO';       {ID for Annotation Chunk}

Constant descriptions

FormID

The Form Chunk. A Form Chunk contains information about the format of the file, and contains all the other chunks of the file.

FormatVersionID

The Format Version Chunk. A Format Version Chunk contains an indication of the version of the AIFF-C specification according to which this file is structured (AIFF-C only).

CommonID

The Common Chunk. A Common Chunk contains information about the sampled sound, such as the sampling rate and sample size.

SoundDataID

The Sound Data Chunk. A Sound Data Chunk contains the sample frames that comprise the sampled sound.

MarkerID

The Marker Chunk. A Marker Chunk contains markers that point to positions in the sound data.

InstrumentID

The Instrument Chunk. An Instrument Chunk defines basic parameters that an instrument (such as a sampling keyboard) can use to play back the sound data.

MIDIDataID

The MIDI Data Chunk. A MIDI Chunk contains MIDI data.

AudioRecordingID

The Audio Recording Chunk. An Audio Recording Chunk contains information pertaining to audio recording devices.

ApplicationSpecificID

The Application Chunk. An Application Chunk contains application-specific information.

CommentID

The Comment Chunk. A Comment Chunk contains a comment.

NameID

The Name Chunk. A Name Chunk contains the name of the sampled sound.

AuthorID

The Author Chunk. An Author Chunk contains one or more names of the authors (or creators) of the sampled sound.

CopyrightID

The Copyright Chunk. A Copyright Chunk contains a copyright notice for the sampled sound.

AnnotationID

The Annotation Chunk. An Annotation Chunk contains a comment.

© 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.