I am developing a simple iPhone sound app. How can I play 1 sound clip after another without any interruption ?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With