I have met this problem with iOS 13.1.2 and AudioKit 4.9. Testing with iPhone XS.
I'm trying to render clip recorder result using this code:
func preRender() {
var scheduleTime : TimeInterval = 2
let dspTime = AVAudioTime(sampleTime: AVAudioFramePosition(scheduleTime * AKSettings.sampleRate), atRate: AKSettings.sampleRate)
if !clipsOnly {
self.musicPlayer.play(at: dspTime)
scheduleTime += 2
}
self.clipPlayer.play(at: dspTime)
}
let writeFile = try AKAudioFile()
try AudioKit.renderToFile(writeFile, duration: duration + 2.0,
prerender: preRender)
Expected result is rendered audio file. Code above works well in simulator with iOS 13.1.2 and also on a device with iOS 12.
Actual result is:
[avae] AVAEInternal.h:109 [AVAudioEngineGraph.mm:1397:Initialize: (err = AUGraphParser::InitializeActiveNodesInInputChain(ThisGraph, *GetInputNode())): error -10868