is there an easier way then audioqueueservices to play several audiofiles?
Hi,
is there an easier way then audioqueueservices to play several audiofiles after each other but not use AVAudio's delegate.
I want to combine two audio files for playback.
The simple example is this:
one sentence is:
"The answer is"
the other sentence is either "correct" or "incorrect".
And I wan to combine the two sentences so they make "the answer is correct" if it is correct.
My final implementation doesn't use these sentences but it is a simple example.
I am now using AVAudioPlayer with the delegate option to see if it finished playing. If it did it plays another file.
But the delegate method has become a big if statement because I use several different sentences and each option has a different second sentence and the delegate has to check for each.
This makes it cluttered and not easy to edit. I go from one method to another and back to the first again.
Is there a way that is less complicated than audioqueueservices but does not need to call upon another method, the delegate in this case.
Like the animateWithDuration completion:^(BOOL finished){ }.
Thanks.
|