开发者

PlayAtTime Issue playing multiple audio files

All I 开发者_Go百科have two audio files (caf) which I want to my audioplayer play one after the other. Below is the code I am using

AVAudioPlayer *lSoundPlayer;
AVAudioPlayer *lSoundPlayer1;


NSTimeInterval timedelay = 2;

[lSoundPlayer play];
[lSoundPlayer1 playAtTime:timedelay];

When I compile I am getting a warning that the AVaudio player might not respond. When I try to execute I am getting exception. Can someone please help


You are sending a message to an object which is neither allocated nor it is initialized.

I suggest you have a look at the class reference and ask again if you have any further questions: http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAudioPlayerClassReference/Reference/Reference.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜