Registers a callback function that is invoked when a specified system sound finishes playing.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
System Sound ID
The system sound that your callback function is to respond to.
The run loop in which the callback function should run. Pass
NULLto use the main run loop.
Run Loop Mode
The mode for the run loop in which the callback functions should run. Pass
NULLto use the default run loop mode.
The callback function to be invoked when the specified system sound has finished playing.
Application data to be passed to your callback function when it is invoked. Can be
A result code.
Because a system sound may play for several seconds, you might want to know when it has finished playing. For example, you may want to wait until a system sound has finished playing before you play another sound.