I have an audio file that I want to begin playing at a 20 second delay, after the user has seen some animations play etc...
Does anyone know how I might go about doing this? I have 5 animations that play, after which I would like audio file to begin. The whole thing would keep cycling until the user exits the app.
Here's the code I have that plays the audio file. I can get it to play if a button is pressed or on viewDidLoad, that works fine.
NSString *audioSoundPath = [[ NSBundle mainBundle] pathForResource:@"audio_file" ofType:@"caf"];
CFURLRef audioURL = (CFURLRef) [NSURL fileURLWithPath:audioSoundPath];
AudioServicesCreateSystemSoundID(audioURL, &audioID);
AudioServicesPlaySystemSound(audioID);
thanks for any help