I am working on music application, Want to play multiple audio files simultaneously, Found many stackoverflow links to get the solution but still no luck for my scenario,
I have total 8 arrays, In each array there are some number of audio files names. Like,
array1 = @[@"aud1",@"aud2"];
array2 = @[@"aud4",@"aud5",@"aud8",@"aud11"];
....
array8 = @[@"aud3",@"aud6",@"aud7"];
All audio files are stored locally in my project, with .wav file extension.
Now, what I want to achieve is, all the array should play in sequential manner with simultaneous play of all audio files which is in one array. i.e. aud1, aud2 (array1) should play together then instantly in sequential manner aud4,aud5,aud8,aud11 (array2) should play simultaneously and so on..
Also I wanted to implement Pause/Stop functionality as well.
I am aware with AVAudioPlayer
, AVQueuePlayer
..
AVQueuePlayer works well with sequential play. I have implemented this code, Play/Pause/Stop multiple audio file which are stored locally But it is not working with simultaneous play followed by sequential play.
Any help is appreciated!
Thanks in advance!