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 theSoundComponentAddSource
function must also implement theSoundComponentRemoveSource
function 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
YourSoundComponentRemoveSource
function is called by the Sound Manager to remove the existing sound source specified by thesourceID
parameter. YourSoundComponentRemoveSource
function should do whatever is necessary to invalidate that source and then call through to the Apple Mixer'sSoundComponentRemoveSource
function.
- IMPORTANT
- Most sound components do not need to implement the
SoundComponentRemoveSource
function. Only sound components that can handle more than one source of input need to define it.SPECIAL CONSIDERATIONS
YourSoundComponentRemoveSource
function is always called at noninterrupt time.RESULT CODES
YourSoundComponentRemoveSource
function should returnnoErr
if successful or an appropriate result code otherwise.