Hello,
I need to process an audio file with an AudioUnit extension, but the AudioUnitRender function often fails with kAudioUnitErr_RenderTimeout.
It works fine when I preview the effect in real time, but fails in offline mode.
When I tried building a minimal reproducing sample, I had an EXC_BAD_ACCESS immediately in AudioUnitRender if I didn't have any audio playing.
If I create a RemoteIO AudioUnit and make it play silence, in the background, I can do my offline rendering, but get the kAudioUnitErr_RenderTimeout error.
The calls to AudioUnitRender that fail don't take longer than normal calls, so I can't see anything timing out.
The AudioUnit I try rendering with is not related in any way to the RemoteIO running in the background, so I don't understand why it is needed to avoid the crash. I believe I must be doing something wrong.
Is there anything in particular I need to configure in order to do some offline rendering with an AUv3?
Thanks for your help.