AudioSetVolume
An audio component can implement theAudioSetVolumefunction. The Sound Manager calls this function to set the current volume of an audio port.
pascal ComponentResult AudioSetVolume (ComponentInstance ac, short whichChannel, ShortFixed volume);
ac- A component instance that identifies your audio component.
whichChannel- The channel or channels whose volume you should set.
volume- The desired volume level of the specified channel.
DESCRIPTION
YourAudioSetVolumefunction is called by the Sound Manager to set the volume levels of one or more channels of an audio port. See the description of theAudioGetVolumefunction for the values of thewhichChannelandvolumeparameters.RESULT CODES
YourAudioSetVolumefunction should returnnoErrif successful or an appropriate result code otherwise. In particular, if your audio component doesn't support software control of volume levels,AudioSetVolumeshould returnunImpErr.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help