Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 2 - Sound Manager / Sound Manager Reference
Sound Manager Routines


Legacy Documentclose button

Important: Inside Macintosh: Sound 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.

Obtaining Information

To obtain information about whether a computer supports certain sound features, you should use the Gestalt function, documented in Inside Macintosh: Operating System Utilities. Sometimes, however, you might need information the Gestalt function is not able to provide. The Sound Manager provides a number of routines that you can use to obtain additional sound-related information.

You can obtain the version numbers of the Sound Manager and the MACE tools by calling the SndSoundManagerVersion and MACEVersion functions, respectively. You can obtain information about a sound channel and about all sound channels by calling the SndControl, SndChannelStatus, and SndManagerStatus functions, respectively.

The Sound Manager includes two routines--SndGetSysBeepState and SndSetSysBeepState--that allow you to determine and alter the status of the system alert sound.

To play a sound resource using low-level Sound Manager routines, you need the address of the sound header stored in the sound resource. Sound Manager versions 3.0 and later provide the GetSoundHeaderOffset function that you can use to obtain that information.


Subtopics
SndSoundManagerVersion
MACEVersion
SndControl
SndChannelStatus
SndManagerStatus
SndGetSysBeepState
SndSetSysBeepState
GetSoundHeaderOffset

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996