MaxFramesPerSlice in AVAudioEngine and AUAudioUnit

Hi all,


I'm a struggling with the notion of "maximum frames per slice" in the context of AVAudioEngine and home-made AUAudioUnits.


I'll make it simple with two questions :


Q1. Is it possible to control the maximum number of frames per render loop (maxFramesPerSlice) in an AVAudioEngine?

In AUGraph, I used to set it manually on the remoteIO with AudioUnitSetProperty and kAudioUnitProperty_MaximumFramesPerSlice. But I just read here that I'm not supposed to set it on I/O units. It seemed to work however.


Q2. Is it possible to get the maxFramesPerSlice of the ouputNode in an AVAudioEngine?

I understood that the maxFramePerSlice is set for each AVAudioNode at startup (more precisely at prepare) of the AVAudioEngine, but I need this info at other parts of my code, is there any way to get this value and get notified when it changes?


Thank you for your help 🙂


Tom