Swift 3 iOS - Synchronised Pause with AVAudioPlayer
问题 I am using AVAudioPlayer to play a set of synchronised MP3 files in a player style interface (Play/Pause/Stop). I am aware that I can synchronise playing them by using play(atTime:) but my question is, how do I synchronise pausing them? At the moment, to pause them, I am using: for (_, audioTrackPlayer) in audioTrackPlayers.enumerated() { audioTrackPlayer.pause() } But of course, they all pause one after the other. There is no equivalent pause(atTime:) function. So how can precise