AVAudioPlayer has the function I need - to play audio after a certain time play (atTime:
let shortStartDelay: TimeInterval = 0.1 let now = player.deviceCurrentTime player.play(atTime: now + shortStartDelay) It turns out player.deviceCurrentTime is TimeInterval , for example, now I have it equal to 242556.425833583
Does anyone know how he calculates it?
I need to take the system time from the Date () device, add to it, say, 4 seconds and do something like:
player.play(atTime: Date() + 4) How to do it? Or tell me some other player who can do this ...