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.

Version Records

The functions SndSoundManagerVersion and MACEVersion return version information using a version record. The NumVersion data type defines a version record.

TYPE NumVersion =
PACKED RECORD
CASE INTEGER OF
0:
    (majorRev:              SignedByte;         {major revision level in BCD}
    minorAndBugRev:         SignedByte;         {minor revision level}
    stage:                  SignedByte;         {development stage}
    nonRelRev:              SignedByte);        {nonreleased revision level}
1:
    (version:               LongInt);           {all 4 fields together}
END;

A version record has the same structure as the first four fields of a version resource (a resource of type 'vers' ). See the chapter "Finder Interface" in Inside Macintosh: Macintosh Toolbox Essentials for complete information about version resources.

majorRev

The major revision level. This field is a signed byte in binary-coded decimal format.

minorAndBugRev

The minor revision level. This field is a signed byte in binary-coded decimal format.

stage

The development stage. You should use the following constants to specify a development stage:
                    CONST
                        developStage            = $20;      {prealpha release}
                        alphaStage              = $40;      {alpha release}
                        betaStage               = $60;      {beta release}
                        finalStage              = $80;      {final release}

nonRelRev

The revision level of a prereleased version.

version

A long integer that contains all four version 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.