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.
SoundComponentStopSource
A sound output device component must implement theSoundComponentStopSource
function. The Sound Manager calls this function to stop playing sounds in one or more sound channels.
pascal ComponentResult SoundComponentStopSource (ComponentInstance ti, short count, SoundSource *sources);
ti
- A component instance that identifies your sound component.
count
- The number of source IDs in the array pointed to by the
source
parameter.sources
- An array of source IDs.
DESCRIPTION
YourSoundComponentStopSource
function is called by the Sound Manager to stop the sounds originating from the sound sources specified by thesources
parameter. Your function should stop sending data from those sources to the associated sound output device. In addition, yourSoundComponentStopSource
function should flush any data from the specified sound sources that it's caching. If your component supports only one sound source, you can ignore thesources
parameter.RESULT CODES
YourSoundComponentStopSource
function should returnnoErr
if successful or an appropriate result code otherwise. You should returnnoErr
even if no sounds are playing in the specified channels.