Inside Macintosh: Sound
| Previous | Chapter contents | Chapter top | Section top | Next |
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.
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.
The major revision level. This field is a signed byte in binary-coded decimal format.
The minor revision level. This field is a signed byte in binary-coded decimal format.
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}
The revision level of a prereleased version.
A long integer that contains all four version fields.
Inside Macintosh: Sound
| Previous | Chapter contents | Chapter top | Section top | Next |
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.