user1557623
user1557623

Reputation: 11

how to play two AVAudioPlayer using singleton object...?

I am beginner of iPhone. I want to play two sound one by one. one stop and then second play.only one button click event play two sound one by one and using singleton object. give any source code and suggestion which apply in my apps...

Upvotes: 1

Views: 271

Answers (1)

Avi Cohen
Avi Cohen

Reputation: 3414

You can use the delegate method

- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag, which belongs to the protocol AVAudioPlayerDelegate.

You can read about it here.

Upvotes: 1

Related Questions