Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play 1 sound clip after another without any interruption in iPhone

I am developing a simple iPhone sound app. How can I play 1 sound clip after another without any interruption ?

like image 559
Md Nasir Uddin Avatar asked Mar 24 '09 06:03

Md Nasir Uddin


1 Answers

Are you using SystemSounds or AudioQueues? If SystemSounds (for short sounds), you'll need to have a thread that plays them at a specific time interval, as there is no way to know when the sound ends.

For AudioQueues, you get callbacks when each section of a sound is finished, and so it's a fairly easy thing to start another sound (say, background music) when the first ends.

You don't really state what you're trying to accomplish, so giving a specific answer is difficult. Are you looking to splice together sound files? Play background music? Make 3 lazer-beam sounds come when the user shoots 3 times? Etc.

like image 127
Olie Avatar answered Oct 30 '22 18:10

Olie