I have an application that had previously been working fine (using iOS 9, iPhone 6 and lower). It uses Audio Unit APIs to process audio using an AudioUnitRender callback (calculating audio frequencies). This code also worked fine on iPhone 6s until I attempt to play back audio after which I get an Error 50 (very generic error) when calling AudioUnitRender.
The same code works fine before using audio playback APIs (any including playing video) and works fine before or after using an iPhone 6, iPhone 5, 5s, etc.
There is a ton of code involved so I am not posting it but any thoughts on what might be causing this or what I might be able to try to help diagnose the issue would be greatly appreciated.