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.
AudioGetMute
An audio component can implement theAudioGetMute
function. The Sound Manager calls this function to determine the current mute state of an audio port.
pascal ComponentResult AudioGetMute (ComponentInstance ac, short whichChannel, short *mute);
ac
- A component instance that identifies your audio component.
whichChannel
- The channel or channels whose mute state you should return.
mute
- On output, the current mute state of the specified channel.
DESCRIPTION
YourAudioGetMute
function is called by the Sound Manager to determine the current mute state of one or more channels of an audio port. The following constants define the mute states you can return in themute
parameter:
#define audioUnmuted 0 /*device is not muted*/ #define audioMuted 1 /*device is muted*/ThewhichChannel
parameter indicates the channels or channels whose mute state you should return. The following constants are defined for thewhichChannel
parameter:
#define audioAllChannels 0 /*all channels*/ #define audioLeftChannel 1 /*left channel*/ #define audioRightChannel 2 /*right channel*/RESULT CODES
YourAudioGetMute
function should returnnoErr
if successful or an appropriate result code otherwise. In particular, if your audio component doesn't support software control of mute states,AudioGetMute
should returnunImpErr
.