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 theGestalt
function, documented in Inside Macintosh: Operating System Utilities. Sometimes, however, you might need information theGestalt
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
andMACEVersion
functions, respectively. You can obtain information about a sound channel and about all sound channels by calling theSndControl
,SndChannelStatus
, andSndManagerStatus
functions, respectively.The Sound Manager includes two routines--
SndGetSysBeepState
andSndSetSysBeepState
--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