ExtAudioFileWriteAsync occasional buffer overflow

Hello Forum,


We have been using ExtAudioFileWriteAsync to write two PCM Audio Streams to disk on iOS. We are getting reports by some users on sudden audio drop outs during real-time performance that we managed to chase down to kExtAudioFileError_AsyncWriteBufferOverflow exceptions. Note that this happens during live audio sessions with many real-time processings, all of a sudden, and not systematically.


From descriptions on the web, it gives us the feeling that we should probably drop ExtAudioFileWriteAsync in favour of lower level calls.


What would be alternatives?


We have been looking at Audio Queue Services but documentations/examples are so old that I prefer asking people here if this is still the recommended way to go.


Any suggestions welcome and thanks in advance!



Arshia