Invoked when a system sound finishes playing.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The system sound that has finished playing.
Application data that you specified when registering the callback function.
If you named your function
My, you would declare it like this:
Because a system sound may play for up to 30 seconds, the
Audio function executes asynchronously (that is, it returns immediately). This callback gets invoked when a specified system sound has finished playing. You can use this callback, for example, to help you avoid playing a second sound while a first sound is still playing.