Buffer cleanup in an AEBlockChannel based sequencer
Hi Michael and all,
I'm working in a sequencer that uses AEBlockChannels and loads a .wav file in each channel with AEAudioFileLoaderOperation. Then I add the channels to my audioController and it plays nicely.
But then I'm not managing to stop the audioController properly. I set
audioController = nil
and clean the buffers with
, but when I init again the audioController (initWithAudioDescription:) it doesn't start playing fresh but at the point it was previously stopped, as if there is still somewhere some buffer alive.
I'm not managing to find out what i'm missing, I'd appreciate so any thought about it.
Thank you Michael for your work, your kindness and your patience.