I\'m trying to eliminate startup lag when playing a (very short -- less than 2 seconds) audio file via AVAudioPlayer on the iPhone.
First, the code:
The answer is
AVAudioPlayer *audioplayer; [audioplayer prepareToPlay];