Creates an action that plays a sound.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The name of a sound file in the app’s bundle.
true, the duration of this action is the same as the length of the audio playback. If
false, the action is considered to have completed immediately.
A new action object.
play only for short incidentals. Use
AVAudio for long running background music. This action is not reversible; the reversed action is identical to the original action.