I have a number of loops which have to be played seemlessly, in a way that I will only know which one to play when the last one finishes.
So I did it with AVAudioPlayer, added a delegate so I know when the audio finished playback, and in that method I triggered the next audio to be played, but there´s a silence gap between the two audio, and I cannot work with that.
I tried using .CAF format instead of .AIF but it was no good.
Can anyone help me with this? Core Audio seems a little bit difficult for me to understand right now.
Just found Novocaine on github and tweaked it a little: