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.
SoundComponentRemoveSource
A sound output device component that implements theSoundComponentAddSourcefunction must also implement theSoundComponentRemoveSourcefunction to remove sound sources.
pascal ComponentResult SoundComponentRemoveSource (ComponentInstance ti, SoundSource sourceID);
ti- A component instance that identifies your sound component.
sourceID- A source ID for the source component chain to be removed.
DESCRIPTION
YourSoundComponentRemoveSourcefunction is called by the Sound Manager to remove the existing sound source specified by thesourceIDparameter. YourSoundComponentRemoveSourcefunction should do whatever is necessary to invalidate that source and then call through to the Apple Mixer'sSoundComponentRemoveSourcefunction.
- IMPORTANT
- Most sound components do not need to implement the
SoundComponentRemoveSourcefunction. Only sound components that can handle more than one source of input need to define it.![]()
SPECIAL CONSIDERATIONS
YourSoundComponentRemoveSourcefunction is always called at noninterrupt time.RESULT CODES
YourSoundComponentRemoveSourcefunction should returnnoErrif successful or an appropriate result code otherwise.