Need to show controls and wait for sounds to play in sequence ?

I'm developing an app where I need to un-hide labels and play sounds in sequence.

So...

label1.hide = NO;
play sound 1
wait for sound to finish

label2.hide = NO;
play sound 2
wait for sound to finish
mindwarpltdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pgnatyukCommented:
Multimedia Support
http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AudioandVideoTechnologies/AudioandVideoTechnologies.html

The first example from that link create a sound from a file, then (few lines below) you will see the code playing it. It works.
Here is a tutorial:
How to Play a Short Sound in iPhone Code
http://howtomakeiphoneapps.com/2009/08/how-to-play-a-short-sound-in-iphone-code/

It is an easy stuff and everything will work for you in few minutes.

Here is AVAudioPlayer:
http://9mmedia.com/blog/?p=308

Tutorial about this approach:
How To Play Sounds In Your iPhone
http://www.iphoneapptuts.com/audio-sound/how-to-play-sounds-in-your-iphone/
0
mindwarpltdAuthor Commented:
But none of these show me how to wait for the the sound file to finish before the next one is played
0
pgnatyukCommented:
Use the delegates.
It was not obvious in your question.
Let me know if you will not find it the links I have posted.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.