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 to 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