setCurrentTime(_:)
Sets the playback point, measured in seconds, from the beginning of the audio file.
Declaration
func setCurrentTime(_ currentTime: TimeInterval)Parameters
- currentTime:
The offset of the current playback position, measured in seconds from the start of the sound.
Discussion
Use this method to seek a specific point in a sound file or to implement fast-forward and rewind functions.