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.
SoundComponentPauseSource
A sound output device component must implement theSoundComponentPauseSourcefunction. The Sound Manager calls this function to stop pause the playing of sounds in one or more sound channels.
pascal ComponentResult SoundComponentPauseSource (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
sourceparameter.sources- An array of source IDs.
DESCRIPTION
YourSoundComponentPauseSourcefunction is called by the Sound Manager to pause the playing of the sounds originating from the sound sources specified by thesourcesparameter. Your function should stop sending data from those sources to the associated sound output device. Because yourSoundComponentStartSourcefunction might be called to resume playing sounds, you should not flush any data. If your component supports only one sound source, you can ignore thesourcesparameter.RESULT CODES
YourSoundComponentPauseSourcefunction should returnnoErrif successful or an appropriate result code otherwise. You should returnnoErreven if no sounds are playing in the specified channels.