Stops playback and undoes the setup needed for playback.
- iOS 2.2+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.2+
Calling this method, or allowing a sound to finish playing, undoes the setup performed upon calling the
stop method does not reset the value of the
current property to
0. In other words, if you call
stop during playback and then call
play(), playback resumes at the point where it left off.