Performance between CoreAudio and AVFoundation

Viewed 927

I’ve a question about CoreAudio and AVFoundation.

I built an pro audio application using CoreAudio with an AUGraph and AudioUnit.

I would like to switch to AVFoundation framework which seems to be really great. But since I’m worried about the performance I would like to know a little bit more about it.

In my core audio render callback I can process 512 samples with a sample rate of 44100kHz so my callback is called every 10ms, and I think it could easily go faster (am I right?).

Now in AVFoundation, the render callback is the Tap of the AVAudioNode. And I read in the comment that the bufferSize parameter is the requested size of the incoming buffers in sample frames. Supported range is [100, 400] ms. So does it mean that I won’t be able to process less than 4410 samples on each calls?

Does the restriction comes from the Objective-C constraints (message calls, lock and so on) ?

Won’t it make an impact on real-time DSP process?

1 Answers
Related