How do I fastforward using AVAudioplayer while hearing the music?

Solutions Collect From Internet About “How do I fastforward using AVAudioplayer while hearing the music?”

Have a look at the rate property on AVAudioPlayer

This property’s default value of 1.0 provides normal playback rate. The available range is from 0.5 for half-speed playback through 2.0 for double-speed playback.

To set an audio player’s playback rate, you must first enable rate adjustment as described in the enableRate property description.

You could change the rate for a certain amount of time when a button is pressed to simulate fast-forwarding