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

Posted on 2010-04-01
Medium Priority
Last Modified: 2013-11-25
I'm developing an app where I need to un-hide labels and play sounds in sequence.


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

label2.hide = NO;
play sound 2
wait for sound to finish
Question by:mindwarpltd
  • 2
LVL 33

Expert Comment

ID: 29377398
Multimedia Support

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

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

Here is AVAudioPlayer:

Tutorial about this approach:
How To Play Sounds In Your iPhone

Author Comment

ID: 29385329
But none of these show me how to wait for the the sound file to finish before the next one is played
LVL 33

Accepted Solution

pgnatyuk earned 2000 total points
ID: 29430504
Use the delegates.
It was not obvious in your question.
Let me know if you will not find it the links I have posted.

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
If you have a smartphone, I'm sure you've noticed that web applications are changing. Yet, are you aware of how these changes are going to impact your organization or company?
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question